-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
63 lines (55 loc) · 1.51 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
plugins {
java
`maven-publish`
}
val groupId: String by project
val title: String by project
val vendor: String by project
group = groupId
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withSourcesJar()
}
tasks.withType<Jar> {
manifest {
attributes(
"Built-By" to System.getProperty("user.name"),
"Specification-Title" to title,
"Specification-Vendor" to vendor,
"Specification-Version" to project.version,
"Implementation-Title" to title,
"Implementation-Vendor" to vendor,
"Implementation-Version" to project.version
)
}
}
publishing {
publications {
create<MavenPublication>("jasperService") {
from(components["java"])
pom {
name.set("Riege Software International Jasper Service")
url.set(System.getenv("PROJECT_URL"))
}
}
}
repositories {
maven {
url = uri(System.getenv("MAVEN_PUBLISH_URL") ?: "")
credentials {
username = System.getenv("MAVEN_PUBLISH_USERNAME")
password = System.getenv("MAVEN_PUBLISH_PASSWORD")
}
}
}
}
repositories {
maven {
url = uri("https://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts/")
}
mavenCentral()
}
dependencies {
implementation(group = "net.sf.jasperreports", name = "jasperreports", version = "6.14.0")
}