-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
37 lines (31 loc) · 896 Bytes
/
build.gradle
File metadata and controls
37 lines (31 loc) · 896 Bytes
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
plugins {
id "base"
id 'java-library'
id 'io.github.gradle-nexus.publish-plugin' version "${nexusPublishPluginVersion}"
id 'com.linecorp.gradle.license-git' version '0.1.0'
}
version = System.getenv("SDK_VERSION") ?: (
"0.1.40" + (project.hasProperty("release") ? "" : "-SNAPSHOT")
)
subprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'license'
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
javadoc.options.encoding = 'UTF-8'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenLocal()
mavenCentral()
}
}
nexusPublishing {
repositories {
sonatype {
username.set(System.getenv("MAVEN_USERNAME"))
password.set(System.getenv("MAVEN_PASSWORD"))
}
}
}