-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
54 lines (45 loc) · 1.17 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.5.10"
maven
}
group = "jp.aoichaan0513"
version = "1.1.8"
repositories {
mavenCentral()
maven("https://repository.aoichaan0513.jp")
}
dependencies {
implementation(kotlin("stdlib"))
implementation("jp.aoichaan0513", "Kotlin_Utils", "1.2.1")
}
java {
withSourcesJar()
withJavadocJar()
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString()
val repo = File(rootDir, "repository")
val uploadArchives: Upload by tasks
uploadArchives.repositories.withConvention(MavenRepositoryHandlerConvention::class) {
mavenDeployer {
withGroovyBuilder {
"repository"("url" to uri("file://${repo.absolutePath}"))
}
pom.project {
withGroovyBuilder {
"parent" {
"groupId"(group)
"artifactId"(rootProject.name)
"version"(version)
}
}
}
}
}
val sourcesJar: Jar by tasks
val javadocJar: Jar by tasks
artifacts {
archives(sourcesJar)
archives(javadocJar)
}