-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
76 lines (64 loc) · 1.94 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
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 = 'General development support functions'
java {
sourceCompatibility = JavaVersion.VERSION_1_8
}
dependencies {
api 'de.esoco:esoco-lib:1.6.0'
testImplementation platform("org.junit:junit-bom:$junitVersion")
testImplementation 'org.junit.jupiter:junit-jupiter'
testRuntimeOnly 'com.h2database:h2:2.2.224'
}
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"
}
}
}