forked from tobiasdiez/EasyBind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
130 lines (110 loc) · 3.39 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
119
120
121
122
123
124
125
126
127
128
129
130
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
id 'org.openjfx.javafxplugin' version '0.1.0'
id "io.github.gradle-nexus.publish-plugin" version "2.0.0"
id 'org.javamodularity.moduleplugin' version '1.8.15'
}
group = 'org.jabref'
version = '2.2.1-SNAPSHOT'
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.3'
testImplementation 'org.junit.platform:junit-platform-launcher:1.10.3'
}
java {
withJavadocJar()
withSourcesJar()
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
javafx {
version = "20"
modules = ['javafx.base']
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'easybind'
from components.java
pom {
name = 'EasyBind'
description = 'Factory methods for easy creation of JavaFX bindings using lambdas.'
url = 'https://github.com/tobiasdiez/EasyBind'
licenses {
license {
name = 'The BSD 2-Clause License'
url = 'http://opensource.org/licenses/BSD-2-Clause'
distribution = 'repo'
}
}
developers {
developer {
id = 'siedlerchr'
name = 'Christoph Schwentker'
}
developer {
id = 'koppor'
name = 'Oliver Kopp'
}
developer {
id = 'tobiasdiez'
name = 'Tobias Diez'
}
developer {
name = 'Tomas Mikula'
}
}
scm {
url = 'https://github.com/JabRef/EasyBind'
connection = 'scm:git:git://github.com/JabRef/EasyBind.git'
developerConnection = 'scm:git:[email protected]/JabRef/EasyBind.git'
}
}
}
}
}
signing {
required = isReleaseVersion
useInMemoryPgpKeys(System.getenv("SIGNING_KEY"), System.getenv("SIGNING_PASSWORD"))
sign publishing.publications.mavenJava
}
nexusPublishing {
repositories {
sonatype { //only for users registered in Sonatype after 24 Feb 2021
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
exceptionFormat "full"
showExceptions true
showCauses true
showStackTraces true
}
}
/* uncomment if you want to compile the test in eclipse
compileTestJava {
moduleOptions {
compileOnClasspath = true
}
}
*/
tasks.withType(Javadoc).configureEach {
// Ignore warnings because of missing elements
options.addStringOption('Xdoclint:all,-missing', '-quiet')
}