-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
62 lines (49 loc) · 1.24 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
apply plugin: 'java'
apply plugin: 'maven-publish'
configurations {
providedRuntime
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
mavenCentral();
}
dependencies {
implementation 'org.jetbrains:annotations:22.0.0'
implementation('com.google.code.gson:gson:2.8.8')
implementation group: 'com.google.guava', name: 'guava', version: '29.0-jre'
implementation('commons-io:commons-io:2.7')
}
group = 'de.spark61'
version = '1.0.9'
jar {
enabled = true
baseName("Config")
version(project.version)
from {
configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) }
}
manifest {
attributes["Implimentation-Title"] = project.name
}
}
publishing {
publications {
library(MavenPublication) {
from components.java
}
}
repositories {
maven {
url "https://gitlab.zyonicsoftware.com/api/v4/projects/177/packages/maven"
credentials(HttpHeaderCredentials) {
name = "Job-Token"
value = System.getenv("CI_JOB_TOKEN")
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
}