-
-
Notifications
You must be signed in to change notification settings - Fork 162
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
93 lines (80 loc) · 2.11 KB
/
build.gradle.kts
File metadata and controls
93 lines (80 loc) · 2.11 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
85
86
87
88
89
90
91
92
93
import com.vanniktech.maven.publish.SonatypeHost
plugins {
java
alias(libs.plugins.mavenPublish)
}
sourceSets {
main {
java {
srcDirs("src")
}
}
}
repositories {
mavenCentral()
}
dependencies {
compileOnly(project(":core"))
}
tasks.register<Copy>("createLibrary") {
dependsOn("jar")
into(layout.buildDirectory.dir("library"))
from(layout.projectDirectory) {
include("library.properties")
include("examples/**")
}
from(configurations.runtimeClasspath) {
into("library")
}
from(tasks.jar) {
into("library")
rename { "io.jar" }
}
from(layout.projectDirectory.dir("library")) {
include("linux-arm64/**")
include("linux-armv6hf/**")
include("linux32/**")
include("linux64/**")
into("library")
}
}
publishing {
repositories {
maven {
name = "App"
url = uri(project(":app").layout.buildDirectory.dir("resources-bundled/common/repository").get().asFile.absolutePath)
}
}
}
mavenPublishing {
coordinates("$group.core", name, version.toString())
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL, automaticRelease = true)
if (project.hasProperty("signMavenPackages"))
signAllPublications()
pom {
name.set("Processing IO")
description.set("Processing IO")
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")
}
}
}