-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
117 lines (109 loc) · 3.16 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
105
106
107
108
109
110
111
112
113
114
115
116
117
plugins {
id 'java'
id 'java-library'
id 'maven-publish'
}
group 'me.lucko.configurate'
version '4.1'
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
test {
useJUnitPlatform()
}
repositories {
mavenCentral()
}
dependencies {
api 'org.spongepowered:configurate-core:4.1.2'
api 'com.moandjiezana.toml:toml4j:0.7.2'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.1.0'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.1.0'
}
// Only used occasionally for deployment - not needed for normal builds.
/*
apply plugin: 'signing'
javadoc {
options.encoding = 'UTF-8'
options.charSet = 'UTF-8'
options.addStringOption('Xdoclint:none', '-quiet')
if (JavaVersion.current() > JavaVersion.VERSION_1_8) {
options.addBooleanOption('html5', true)
options.links.add('https://docs.oracle.com/en/java/javase/11/docs/api/')
} else {
options.links.add('https://docs.oracle.com/javase/8/docs/api/')
}
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
publishing {
repositories {
maven {
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials {
username sonatypeUsername
password sonatypePassword
}
}
//maven {
// url = 'https://nexus.lucko.me/repository/maven-releases/'
// credentials {
// username luckoNexusUsername
// password luckoNexusPassword
// }
//}
}
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = 'configurate-toml'
description = 'configurate loader for TOML'
url = 'https://github.com/lucko/configurate-toml'
licenses {
license {
name = 'MIT'
url = 'https://opensource.org/licenses/MIT'
}
}
developers {
developer {
id= 'lucko'
name = 'Luck'
url = 'https://lucko.me'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:https://github.com/lucko/configurate-toml.git'
developerConnection = 'scm:git:[email protected]:lucko/configurate-toml.git'
url = 'https://github.com/lucko/configurate-toml'
}
issueManagement {
system = 'GitHub'
url = 'https://github.com/lucko/configurate-toml/issues'
}
}
}
}
}
signing {
useGpgCmd()
sign configurations.archives
sign publishing.publications.mavenJava
required = true
}
*/