-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathbuild.gradle
71 lines (58 loc) · 1.68 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
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 = 'A pure Java implementation of coroutines'
sourceCompatibility = 1.8
dependencies {
api "org.obrel:objectrelations:$obrelVersion"
testImplementation platform("org.junit:junit-bom:$junitVersion")
testImplementation 'org.junit.jupiter:junit-jupiter'
}
task sourceJar(type: Jar, dependsOn: classes) {
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
from javadoc.destinationDir
}
artifacts {
archives sourceJar
archives javadocJar
}
test { useJUnitPlatform() }
mavenPublishing {
coordinates("$project.group", "$project.name", "$project.version")
pom {
name = "$project.name"
description = "$project.description"
inceptionYear = "2018"
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"
}
}
}