-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
104 lines (92 loc) · 2.12 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "net.minecrell.licenser:net.minecrell.licenser.gradle.plugin:0.4.1"
}
}
apply plugin: 'java-library'
apply plugin: 'maven-publish'
// grumble grumble...
if (!project.getPlugins().hasPlugin('net.minecrell.licenser')) {
apply plugin: 'net.minecrell.licenser'
}
group = 'com.playsawdust'
archivesBaseName = 'toolbox'
version = '2.2.1'
repositories {
mavenCentral()
}
dependencies {
api 'org.slf4j:slf4j-api:1.7.9'
api 'com.google.guava:listenablefuture:1.0'
api 'org.checkerframework:checker-qual:3.21.0'
compileOnly 'net.java.dev.jna:jna:5.0.0'
compileOnly 'net.java.dev.jna:jna-platform:5.0.0'
}
license {
header = file('HEADER')
include '**/*.java'
exclude '**/RandomXoshiro256StarStar.java'
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
repositories {
maven {
// *shrug*
url = "file:///home/una/unascribed.com/_subdomains/repo"
}
}
publications {
mavenJava(MavenPublication) {
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
groupId = project.group
artifactId = 'toolbox'
version = project.version
from components.java
pom {
name = 'Chipper Toolbox'
description = 'A somewhat opinionated collection of assorted utilities for Java, designed for use with Google Guava.'
url = 'https://github.com/playsawdust/Toolbox'
licenses {
license {
name = 'MIT License'
url = 'https://github.com/playsawdust/Toolbox/blob/trunk/LICENSE'
}
}
developers {
developer {
id = 'unascribed'
name = 'Una Thompson'
email = '[email protected]'
}
developer {
id = 'Falkreon'
name = 'Isaac Ellingson'
}
}
scm {
connection = 'scm:git:https://github.com/playsawdust/Toolbox.git'
developerConnection = 'scm:git:ssh://[email protected]:playsawdust/Toolbox.git'
url = 'https://github.com/playsawdust/Toolbox'
}
}
}
}
}
tasks.withType(GenerateModuleMetadata) {
enabled = false
}