-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle.kts
102 lines (87 loc) · 3.13 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
96
97
98
99
100
101
102
import org.ajoberstar.reckon.gradle.ReckonExtension
plugins {
java
idea
signing
`maven-publish`
id("org.ajoberstar.reckon") version "0.13.0"
}
configure<ReckonExtension> {
scopeFromProp()
stageFromProp("rc", "final")
}
defaultTasks("build")
subprojects {
apply(plugin = "java")
apply(plugin = "idea")
apply(plugin = "signing")
apply(plugin = "maven-publish")
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
val sourcesJar = tasks.register<Jar>("sourcesJar") {
archiveClassifier.set("sources")
from(sourceSets.getByName("main").allSource)
}
tasks.withType<JavaCompile> {
options.isDebug = true
options.debugOptions.debugLevel = "source,lines,vars"
options.encoding = "UTF-8"
options.compilerArgs.add("-parameters")
}
artifacts.add("archives", sourcesJar)
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
artifact(tasks["sourcesJar"])
pom {
url.set("https://ascend-tech.us")
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("mdavis")
name.set("Matt Davis")
email.set("[email protected]")
organization.set("Ascendant Software Technology, LLC")
organizationUrl.set("https://www.ascend-tech.us")
}
developer {
id.set("payam.meyer")
name.set("Payam Mayer")
email.set("[email protected]")
organization.set("Ascendant Software Technology, LLC")
organizationUrl.set("https://www.ascend-tech.us")
}
}
scm {
connection.set("[email protected]:ascendtech/gwt-highcharts.git")
developerConnection.set("[email protected]:ascendtech/gwt-highcharts.git")
url.set("https://github.com/ascendtech/gwt-highcharts.git")
}
name.set(project.name)
description.set(project.name)
}
}
}
}
defaultTasks("build")
group = "us.ascendtech"
repositories {
mavenCentral()
}
dependencies {
implementation("com.google.jsinterop:jsinterop-annotations:2.0.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.2.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.2.0")
}
tasks.withType<Jar> {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
}