forked from mulesoft-labs/raml-java-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
95 lines (84 loc) · 2.59 KB
/
build.gradle.kts
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
plugins {
`java-library`
`maven-publish`
}
group = "org.raml"
version = "1.0.9"
subprojects {
if (this.name == "platform")
return@subprojects
apply(plugin = "java-library")
apply(plugin = "maven-publish")
repositories {
mavenLocal()
mavenCentral()
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/veupathdb/packages")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN")
}
}
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withSourcesJar()
withJavadocJar()
}
publishing {
repositories {
maven {
name = "GitHub"
url = uri("https://maven.pkg.github.com/VEuPathDB/raml-java-tools")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
}
}
}
publications {
create<MavenPublication>("gpr") {
from(components["java"])
afterEvaluate {
artifactId = tasks.jar.get().archiveBaseName.get()
}
pom {
url.set("https://github.com/VEuPathDB/raml-java-tools")
group = rootProject.group
version = rootProject.version as String
organization {
name.set("Mulesoft")
url.set("http://mulesoft.com")
}
licenses {
name.set("The Apache License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
}
developers {
developer {
id.set("jpbelang")
name.set("Jean-Philippe Belanger")
email.set("[email protected]")
organization.set("Mulesoft")
organizationUrl.set("http://mulesoft.com")
}
developer {
id.set("epharper")
name.set("Elizabeth Paige Harper")
email.set("[email protected]")
url.set("https://github.com/foxcapades")
organization.set("VEuPathDB")
}
}
scm {
connection.set("scm:git:git://github.com/VEuPathDB/raml-java-tools.git")
developerConnection.set("scm:git:ssh://github.com/VEuPathDB/raml-java-tools.git")
url.set("https://github.com/VEuPathDB/raml-java-tools")
}
}
}
}
}
}