-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
87 lines (73 loc) · 2.12 KB
/
build.gradle
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
plugins {
id "java-library"
id "de.esoco.gwt-lib" version "$gwtLibPluginVersion"
id "pl.allegro.tech.build.axion-release" version "$axionReleaseVersion"
id "com.vanniktech.maven.publish" version "$mavenPublishVersion"
}
repositories {
mavenLocal()
mavenCentral()
}
scmVersion { tag { prefix.set("") } }
project.version = scmVersion.version
project.group = 'de.esoco'
project.description = 'A UI framework based on GWT'
java {
sourceCompatibility = JavaVersion.VERSION_1_8
}
dependencies {
api 'de.esoco:esoco-common:1.5.1'
testImplementation platform("org.junit:junit-bom:$junitVersion")
testImplementation 'org.junit.jupiter:junit-jupiter'
}
test {
useJUnitPlatform()
}
gwt {
module 'de.esoco.GEWT'
gwtVersion = "$gwtVersion"
}
// sources are needed for the GWT compiler
jar { from sourceSets.main.allSource }
tasks.register('sourcesJar', Jar) {
dependsOn classes
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
tasks.register('javadocJar', Jar) {
dependsOn javadoc
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
mavenPublishing {
coordinates("$project.group", "$project.name", "$project.version")
pom {
name = "$project.name"
description = "$project.description"
inceptionYear = "2016"
url = "https://github.com/esoco/${project.name}"
licenses {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
developers {
developer {
id = "esoco"
name = "esoco GmbH"
url = "https://esoco.de/"
}
}
scm {
url = "https://github.com/esoco/${project.name}/"
connection = "scm:git:git://github.com/esoco/${project.name}.git"
developerConnection = "scm:git:ssh://[email protected]/esoco/${project.name}.git"
}
}
}