forked from vitali-fedulov/images4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
58 lines (49 loc) · 1.1 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
plugins {
kotlin("jvm") version "1.9.0"
`java-library`
`maven-publish`
}
repositories {
mavenCentral()
}
dependencies {
testImplementation(kotlin("test"))
testImplementation("org.junit.jupiter:junit-jupiter:5.8.1")
}
var sGroupId = "ru.oklookat"
val sArtifactId = "images4kt"
val sVersion = "3.0.0"
group = sGroupId
version = sVersion
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(8)
}
java {
withSourcesJar()
}
tasks.jar {
manifest {
attributes(
mapOf(
"Implementation-Title" to project.name,
"Implementation-Version" to project.version
)
)
}
}
configure<PublishingExtension> {
publications.create<MavenPublication>(sArtifactId) {
groupId = sGroupId
artifactId = sArtifactId
version = sVersion
pom {
packaging = "jar"
name = sArtifactId
}
artifact("$buildDir/libs/$artifactId-$version.jar") { classifier = "jar" }
artifact("$buildDir/libs/$artifactId-$version-sources.jar") { classifier = "sources" }
}
}