-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
53 lines (47 loc) · 1.2 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
allprojects {
group 'dev.xdark.asm-inline'
version '1.1-SNAPSHOT'
}
subprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
repositories {
mavenCentral()
}
configurations {
shade
compileOnly.extendsFrom shade
}
java.toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
project.ext {
asm = 'org.ow2.asm:asm:9.6'
}
publishing {
repositories {
if (System.getenv('CI') == null) {
mavenLocal()
} else {
maven {
url = 'https://repo.implario.dev/public/'
credentials {
username System.getenv('IMPLARIO_REPO_USER')
password System.getenv('IMPLARIO_REPO_PASSWORD')
}
}
}
}
publications {
maven(MavenPublication) {
groupId project.group
artifactId project.name
version project.version
from components.java
}
}
}
}