-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
82 lines (60 loc) · 1.62 KB
/
build.gradle.kts
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
80
81
82
plugins {
`java-library`
`maven-publish`
id("com.github.johnrengelman.shadow") version "5.2.0"
}
group = "com.exactpro.unsplit"
allprojects {
repositories {
jcenter()
}
afterEvaluate {
tasks {
jar {
enabled = false
}
}
}
}
subprojects {
apply(plugin = "java-library")
apply(plugin = "maven-publish")
apply(plugin = "com.github.johnrengelman.shadow")
tasks {
shadowJar {
classifier = ""
}
build {
finalizedBy(shadowJar)
}
}
publishing {
publications {
create<MavenPublication>("maven") {
project.shadow.component(this)
}
}
repositories {
maven {
name = "Bintray"
url = uri("https://api.bintray.com/maven/exactpro/unsplit/${project.name}/;publish=1")
credentials {
username = System.getProperty("bintray_username")
password = System.getProperty("bintray_apikey")
}
}
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/exactpro/unsplit")
authentication {
create<HttpHeaderAuthentication>("oauth") {
}
}
credentials(HttpHeaderCredentials::class.java) {
name = "Authorization"
value = "Bearer ${ System.getProperty("github_token") }"
}
}
}
}
}