-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
100 lines (87 loc) · 2.42 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
import org.gradle.internal.os.OperatingSystem
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
group = "io.github.micheljung"
version "${version}"
description = "Modern dark theme for JavaFX applications"
project.ext.javaFxPlatform = "${javaFxPlatform}"
allprojects {
version "${version}"
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
}
}
java {
withSourcesJar()
withJavadocJar()
}
if (javaFxPlatform == "unspecified") {
switch (OperatingSystem.current()) {
case OperatingSystem.LINUX:
project.ext.javaFxPlatform = "linux"
break
case OperatingSystem.MAC_OS:
project.ext.javaFxPlatform = "mac"
break
case OperatingSystem.WINDOWS:
project.ext.javaFxPlatform = "win"
break
}
}
dependencies {
compileOnly "org.openjfx:javafx-base:${javaFxVersion}:${javaFxPlatform}"
compileOnly "org.openjfx:javafx-controls:${javaFxVersion}:${javaFxPlatform}"
compileOnly "org.openjfx:javafx-fxml:${javaFxVersion}:${javaFxPlatform}"
compileOnly "org.openjfx:javafx-graphics:${javaFxVersion}:${javaFxPlatform}"
}
publishing {
repositories {
maven {
name = "OSSRH"
setUrl("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = System.getenv("OSSRH_USERNAME")
password = System.getenv("OSSRH_TOKEN")
}
}
}
publications {
mavenJava(MavenPublication) {
groupId = "io.github.micheljung"
artifactId 'jfx-waitomo-theme'
from components.java
pom {
name = 'JFX Waitomo Theme'
description = 'Modern dark theme for JavaFX'
url = 'https://github.com/micheljung/jfx-waitomo-theme'
licenses {
license {
name = 'GNU General Public License, Version 3.0'
url = 'https://www.gnu.org/licenses/gpl-3.0.html'
}
}
developers {
developer {
id = 'mj'
name = 'Michel Jung'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:https://github.com/micheljung/jfx-waitomo-theme.git'
developerConnection = 'scm:git:[email protected]:micheljung/jfx-waitomo-theme.git'
url = 'https://github.com/micheljung/jfx-waitomo-theme'
}
}
}
}
}
signing {
useGpgCmd()
sign publishing.publications.mavenJava
}