-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
104 lines (91 loc) · 2.56 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
import org.gradle.internal.os.OperatingSystem
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
id "io.franzbecker.gradle-lombok" version "5.0.0"
}
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 {
api "net.java.dev.jna:jna:${jnaVersion}"
api "net.java.dev.jna:jna-platform:${jnaVersion}"
api "org.apache.logging.log4j:log4j-api:${log4j2Version}"
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 'fxstage'
from components.java
pom {
name = 'FxStage'
description = 'True borderless UI for JavaFX'
url = 'https://github.com/micheljung/fxstage'
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/fxstage.git'
developerConnection = 'scm:git:[email protected]:micheljung/fxstage.git'
url = 'https://github.com/micheljung/fxstage'
}
}
}
}
}
signing {
useGpgCmd()
sign publishing.publications.mavenJava
}