-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
75 lines (62 loc) · 1.66 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
plugins {
id "maven-publish"
id "com.jfrog.artifactory" version "4.28.2"
id "com.github.johnrengelman.shadow" version "7.1.2"
id "org.jetbrains.kotlin.jvm" version "1.7.10"
}
group "gg.scala.flavor"
version "0.2.0"
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
compileOnly "org.jetbrains.kotlin:kotlin-stdlib:1.7.10"
compileOnly "org.jetbrains.kotlin:kotlin-reflect:1.7.10"
compileOnly "org.reflections:reflections:0.10.2"
compileOnly "jakarta.inject:jakarta.inject-api:2.0.1"
compileOnly "javax.inject:javax.inject:1"
testImplementation "org.junit.jupiter:junit-jupiter:5.9.0"
}
compileKotlin {
kotlinOptions.javaParameters = true
kotlinOptions.jvmTarget = "1.8"
}
shadowJar {
archiveClassifier.set("")
archiveFileName.set("flavor.jar")
exclude "**/*.kotlin_metadata"
mergeServiceFiles()
}
publishing {
publications {
shadow(MavenPublication) { publication ->
project.shadow.component(publication)
}
}
repositories {
maven {
name "scala"
url "${artifactory_contextUrl}/${artifactory_release}"
credentials {
username "${artifactory_user}"
password "${artifactory_password}"
}
}
}
}
artifactory {
this.contextUrl = "${artifactory_contextUrl}"
publish {
repository {
repoKey = "${artifactory_release_local}"
username = "${artifactory_user}"
password = "${artifactory_password}"
maven = true
}
}
}
tasks.build.dependsOn(
shadowJar,
publishShadowPublicationToScalaRepository
)