-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
109 lines (98 loc) · 3.07 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/*
* This file is part of OssLicensesParser.
* Copyright (C) 2024 Philipp Bobek <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* OssLicensesParser is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
plugins {
kotlin("jvm") version "1.9.22"
id("org.jetbrains.dokka") version "1.9.20"
`java-library`
`maven-publish`
signing
}
group = "de.philipp-bobek"
version = "1.0.0"
repositories {
mavenCentral()
}
dependencies {
testImplementation("org.jetbrains.kotlin:kotlin-test")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
kotlin {
jvmToolchain(17)
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
create<MavenPublication>("OssLicensesParser") {
from(components["java"])
pom {
name = "OssLicensesParser"
description = "Parser for the text files generated by the OSS Licenses Gradle Plugin"
url = "https://github.com/Kr0oked/oss-licenses-parser"
licenses {
license {
name = "LGPL-3.0-or-later"
url = "https://www.gnu.org/licenses/lgpl+gpl-3.0.txt"
comments = "GNU Lesser General Public License v3.0 or later"
distribution = "repo"
}
}
developers {
developer {
id = "philipp.bobek"
name = "Philipp Bobek"
email = "[email protected]"
url = "https://philipp-bobek.de"
}
}
scm {
connection = "scm:git:https://github.com/Kr0oked/oss-licenses-parser.git"
developerConnection = "scm:git:https://github.com/Kr0oked/oss-licenses-parser.git"
url = "https://github.com/Kr0oked/oss-licenses-parser"
}
}
}
}
repositories {
maven {
name = "build"
url = uri(layout.buildDirectory.dir("repo"))
}
}
}
signing {
sign(publishing.publications["OssLicensesParser"])
}
tasks.jar {
manifest {
attributes(
mapOf(
"Implementation-Title" to project.name,
"Implementation-Version" to project.version
)
)
}
}
tasks.named<Jar>("javadocJar") {
from(tasks.named("dokkaJavadoc"))
}
tasks.test {
useJUnitPlatform()
}