-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
79 lines (64 loc) · 1.81 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
72
73
74
75
76
77
78
79
plugins {
id 'java-library'
id 'maven-publish'
}
allprojects {
group 'dev.implario.games5e'
repositories {
mavenCentral()
maven {
url 'https://repo.implario.dev/public/'
}
maven {
url 'https://repo.implario.dev/cristalix/'
credentials {
username = System.getenv("IMPLARIO_REPO_USER")
password = System.getenv("IMPLARIO_REPO_PASSWORD")
}
}
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'java-library'
dependencies {
// implementation "org.jetbrains.kotlin:kotlin-stdlib"
compileOnly 'org.projectlombok:lombok:1.18.16'
annotationProcessor 'org.projectlombok:lombok:1.18.16'
if (project.name != 'commons') {
api 'dev.implario:nettier:1.2.1'
api 'implario:humanize:1.1.3'
api 'implario:java-tools:1.1.3'
}
}
}
subprojects {
apply plugin: 'maven-publish'
publishing {
repositories {
maven {
name 'implario'
url 'https://repo.implario.dev/public'
credentials {
username System.getenv('IMPLARIO_REPO_USER')
password System.getenv('IMPLARIO_REPO_PASSWORD')
}
}
}
}
afterEvaluate {
if (version != 'unspecified') {
publishing {
def p = project
publications {
create(p.name, MavenPublication) {
it.groupId = p.group
it.artifactId = p.description ?: p.name
it.version = p.version
it.from p.components['java']
}
}
}
}
}
}