-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
95 lines (80 loc) · 2.39 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
88
89
90
91
92
93
94
95
plugins {
id "java-library"
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 = 'Common ty for the esoco framework stack'
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
dependencies {
implementation "jakarta.validation:jakarta.validation-api:$jakartaValidationVersion"
testImplementation platform("org.junit:junit-bom:$junitVersion")
testImplementation 'org.junit.jupiter:junit-jupiter'
}
// 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
}
tasks.withType(Javadoc) {
failOnError = false
options.addBooleanOption('quiet', true)
if (JavaVersion.current().isJava8Compatible()) {
options.addBooleanOption('Xdoclint:none', true)
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from(components.java)
}
}
}
mavenPublishing {
coordinates("$project.group", "$project.name", "$project.version")
pom {
name = "$project.name"
description = "$project.description"
inceptionYear = "2016"
url = "https://github.com/esoco/esoco-common"
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/esoco-common/"
connection = "scm:git:git://github.com/esoco/esoco-common.git"
developerConnection = "scm:git:ssh://git@github.com/esoco/esoco-common.git"
}
}
}