-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
40 lines (35 loc) · 875 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
plugins {
id 'java'
id 'maven-publish'
}
group = 'org.soraworld'
version = '1.2.3-SNAPSHOT'
sourceCompatibility = targetCompatibility = 1.8
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
tasks.register('sourcesJar', Jar) {
archiveClassifier = 'sources'
from sourceSets.main.allJava
}
publishing {
publications {
maven(MavenPublication) {
from components.java
groupId = 'org.soraworld'
artifactId = 'hocon'
version = project.version
artifact sourcesJar
}
}
repositories {
maven {
name = "hocon"
url = uri("https://maven.pkg.github.com/himmelt/hocon")
credentials {
username = 'Himmelt'
password = System.getenv("PACKAGES_TOKEN")
}
}
}
}