forked from gluonhq/substrate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
117 lines (101 loc) · 3.22 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
import java.time.Duration
plugins {
id 'java'
id 'signing'
id 'maven-publish'
id 'io.github.gradle-nexus.publish-plugin' version '2.0.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.23'
implementation 'org.bouncycastle:bcpkix-jdk15on:1.49'
implementation 'org.graalvm.nativeimage:svm:21.1.0'
implementation 'org.apidesign.bck2brwsr:aot:0.53'
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.filter { f -> !f.name.endsWith(".tar.gz") }.asPath]
classpath = files()
}
}
javadoc {
options.addStringOption("Xdoclint:none", "-quiet")
options.addBooleanOption('html5', true)
options.addBooleanOption('javafx', true)
doFirst {
options.modulePath = classpath.filter { f -> !f.name.endsWith(".tar.gz") }.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 {
username = project.hasProperty('sonatypeUsername') ? project.property('sonatypeUsername') : ''
password = project.hasProperty('sonatypePassword') ? project.property('sonatypePassword') : ''
}
}
transitionCheckOptions {
maxRetries = 100
delayBetween = Duration.ofSeconds(10)
}
}