-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
44 lines (39 loc) · 960 Bytes
/
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
plugins {
id 'java'
id 'maven-publish'
}
base.archivesName.set("kessoku-annotations")
group = "band.kessoku.annotations"
version = "1.0.0"
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
if (JavaVersion.current().isJava9Compatible()) {
it.options.release = 8
}
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = base.archivesName.get()
from components.java
}
}
repositories {
maven {
name = "cloudsmith"
url = "https://api.cloudsmith.io/maven/kessokuteatime/annotations/"
credentials {
username = 'tex-true'
password = System.getenv("CLOUDSMITH_MAVEN_TOKEN")
}
}
}
}