-
-
Notifications
You must be signed in to change notification settings - Fork 161
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
86 lines (74 loc) · 1.94 KB
/
build.gradle.kts
File metadata and controls
86 lines (74 loc) · 1.94 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
import com.vanniktech.maven.publish.SonatypeHost
plugins{
java
alias(libs.plugins.mavenPublish)
}
sourceSets {
main {
java {
srcDirs("src")
}
}
}
repositories{
mavenCentral()
maven("https://jogamp.org/deployment/maven/")
}
dependencies{
compileOnly(project(":core"))
implementation("com.lowagie:itext:2.1.7")
}
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 { "pdf.jar" }
}
}
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)
signAllPublications()
pom{
name.set("Processing PDF")
description.set("Processing PDF")
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")
}
}
}