-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
54 lines (45 loc) · 1.51 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.plugin.extraProperties
plugins {
kotlin("jvm") version "2.0.20"
id("com.gradle.plugin-publish") version "1.3.0"
`java-gradle-plugin`
}
group = "tech.medivh"
version = "1.2.2"
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
val versions = gradle.extraProperties["versions"] as java.util.Properties
val jacksonVersion: String by versions
val okhttpVersion: String by versions
val jgitVersion: String by versions
implementation("com.squareup.okhttp3:okhttp:${okhttpVersion}")
implementation("org.eclipse.jgit:org.eclipse.jgit:${jgitVersion}")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:${jacksonVersion}")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-xml:${jacksonVersion}")
testImplementation(kotlin("test"))
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(17)
}
@Suppress("UnstableApiUsage")
gradlePlugin {
website = "https://medivh.tech"
vcsUrl = "https://github.com/medivh-project/medivh-publisher.git"
plugins {
create("medivh-publisher") {
id = "tech.medivh.plugin.publisher"
implementationClass = "tech.medivh.plugin.gradle.publisher.MedivhPublisher"
group = "tech.medivh"
version = project.version.toString()
displayName = "sonatype publisher"
description = "a gradle plugin , all in one publishing"
tags = setOf("maven", "sonatype", "publisher")
}
}
}