-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
104 lines (89 loc) · 2.34 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
plugins {
id 'java'
id 'maven-publish'
id 'signing'
id 'publishing'
id 'org.jetbrains.kotlin.jvm' version '1.4.10'
id 'org.openjfx.javafxplugin' version '0.0.9'
}
group 'com.projecturanus'
version '1.0.0'
sourceCompatibility = 11
repositories {
jcenter()
}
javafx {
version = "11.0.2"
modules = [ 'javafx.controls', 'javafx.graphics' ]
}
java {
withJavadocJar()
withSourcesJar()
}
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
publishing {
repositories {
maven {
def releaseRepo = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotRepo = "https://oss.sonatype.org/content/repositories/snapshots/"
url = releaseRepo
credentials {
username = nexusUsername
password = nexusPassword
}
}
}
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = POM_NAME
description = POM_DESCRIPTION
url = POM_URL
scm {
url = POM_SCM_URL
connection = POM_SCM_CONNECTION
developerConnection = POM_SCM_DEV_CONNECTION
}
licenses {
license {
name = POM_LICENCE_NAME
url = POM_LICENCE_URL
}
}
developers {
developer {
email = POM_DEVELOPER_EMAIL
name = POM_DEVELOPER_NAME
}
}
}
}
}
}
// -------------------------------------
// here 'publishing' extension will come
// -------------------------------------
signing {
sign publishing.publications.mavenJava
}
tasks.withType(Sign) {
onlyIf { isReleaseVersion }
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
implementation "javax.vecmath:vecmath:1.5.2"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation 'no.tornado:tornadofx:1.7.19'
implementation 'org.controlsfx:controlsfx:11.0.0'
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}