forked from gluonhq/substrate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
118 lines (101 loc) · 3.13 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
118
import java.time.Duration
plugins {
id 'java'
id 'signing'
id 'io.codearte.nexus-staging' version '0.21.1'
id 'de.marcphilipp.nexus-publish' version '0.4.0'
}
group = "com.gluonhq"
sourceCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
}
test {
dependsOn publishToMavenLocal
useJUnitPlatform()
testLogging {
events 'PASSED', 'FAILED', 'SKIPPED'
stackTraceFilters = []
}
}
dependencies {
implementation 'com.googlecode.plist:dd-plist:1.22'
implementation 'org.bouncycastle:bcpkix-jdk15on:1.49'
testImplementation gradleTestKit()
testImplementation "org.junit.jupiter:junit-jupiter-api:$jUnitVersion"
testImplementation "org.junit.jupiter:junit-jupiter-params:$jUnitVersion"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$jUnitVersion"
}
compileJava {
doFirst {
options.compilerArgs = ['--module-path', classpath.asPath]
classpath = files()
}
}
javadoc {
options.addStringOption("Xdoclint:none", "-quiet")
options.addBooleanOption('html5', true)
options.addBooleanOption('javafx', true)
doFirst {
options.modulePath = classpath.flatten()
}
}
build.dependsOn javadoc
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
archiveClassifier = 'sources'
}
task javadocJar(type: Jar) {
from javadoc
archiveClassifier = 'javadoc'
}
publishing {
publications {
maven(MavenPublication) {
artifactId = 'substrate'
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = 'Gluon Substrate'
description = 'Create native Java(FX) apps for desktop, mobile and embedded'
url = 'https://github.com/gluonhq/substrate'
licenses {
license {
name = 'GNU General Public License v2.0'
url = 'https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html'
}
}
developers {
developer {
name = 'Johan Vos'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com:gluonhq/substrate.git'
developerConnection = 'scm:git:ssh://github.com:gluonhq/substrate.git'
url = 'https://github.com/gluonhq/substrate'
}
}
}
}
}
signing {
required = { gradle.taskGraph.hasTask(publish) && !version.endsWith("SNAPSHOT") }
sign publishing.publications.maven
}
nexusPublishing {
repositories {
sonatype()
}
// credentials are shared from staging plugin
clientTimeout = Duration.ofMinutes(5)
connectTimeout = Duration.ofMinutes(5)
}
nexusStaging {
username = project.hasProperty('sonatypeUsername') ? project.property('sonatypeUsername') : ''
password = project.hasProperty('sonatypePassword') ? project.property('sonatypePassword') : ''
numberOfRetries = 30
delayBetweenRetriesInMillis = 10000
}