This repository was archived by the owner on Jun 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
69 lines (56 loc) · 1.78 KB
/
build.gradle
File metadata and controls
69 lines (56 loc) · 1.78 KB
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
apply plugin: 'java'
apply plugin: 'maven-publish'
subprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
group 'implario'
version '1.1.3'
compileJava.options.encoding 'UTF-8'
tasks.withType(JavaCompile) {
options.encoding 'UTF-8'
}
repositories {
mavenLocal()
mavenCentral()
}
test {
useJUnitPlatform()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.0'
testImplementation 'org.junit.platform:junit-platform-commons:1.7.0'
testImplementation 'org.junit.platform:junit-platform-engine:1.7.0'
testImplementation 'com.google.code.gson:gson:2.8.6'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.12'
testCompileOnly 'org.projectlombok:lombok:1.18.12'
annotationProcessor 'org.projectlombok:lombok:1.18.12'
compileOnly 'org.projectlombok:lombok:1.18.12'
}
jar {
from sourceSets.main.resources
from {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
def javaComponent = components.getByName('java')
publishing {
repositories {
maven {
url 'https://repo.implario.dev/public'
credentials {
username System.getenv("IMPLARIO_REPO_USER")
password System.getenv("IMPLARIO_REPO_PASSWORD")
}
}
}
publications {
register 'maven', MavenPublication, {
groupId = project.group
artifactId = project.name
version = project.version
from javaComponent
}
}
}
}