-
-
Notifications
You must be signed in to change notification settings - Fork 161
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
84 lines (75 loc) · 1.82 KB
/
build.gradle.kts
File metadata and controls
84 lines (75 loc) · 1.82 KB
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
import com.vanniktech.maven.publish.SonatypeHost
plugins {
id("java")
kotlin("jvm") version libs.versions.kotlin
alias(libs.plugins.mavenPublish)
}
repositories {
mavenCentral()
maven { url = uri("https://jogamp.org/deployment/maven") }
}
sourceSets{
main{
java{
srcDirs("src")
exclude("**/*.jnilib")
}
resources{
srcDirs("src")
exclude("**/*.java")
}
}
test{
java{
srcDirs("test")
}
}
}
dependencies {
implementation(libs.jogl)
implementation(libs.gluegen)
testImplementation(libs.junit)
}
mavenPublishing{
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true)
if (project.hasProperty("signMavenPackages"))
signAllPublications()
pom{
name.set("Processing Core")
description.set("Processing Core")
url.set("https://processing.org")
licenses {
license {
name.set("LGPL")
url.set("https://www.gnu.org/licenses/lgpl-2.1.html")
}
}
developers {
developer {
id.set("steftervelde")
name.set("Stef Tervelde")
}
developer {
id.set("benfry")
name.set("Ben Fry")
}
}
scm{
url.set("https://github.com/processing/processing4")
connection.set("scm:git:git://github.com/processing/processing4.git")
developerConnection.set("scm:git:ssh://git@github.com/processing/processing4.git")
}
}
}
tasks.test {
useJUnit()
}
tasks.withType<Jar> {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
tasks.compileJava{
options.encoding = "UTF-8"
}
tasks.javadoc{
options.encoding = "UTF-8"
}