forked from atteo/classindex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
49 lines (42 loc) · 1.27 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
plugins {
base
kotlin("jvm") version "1.8.22" apply false
kotlin("kapt") version "1.8.22" apply false
id("org.jetbrains.dokka") version "1.8.20" apply false
id("com.vanniktech.maven.publish") version "0.27.0"
id("com.palantir.git-version") version "3.1.0"
}
allprojects {
apply(plugin = "com.palantir.git-version")
repositories {
mavenCentral()
google()
}
val gitVersion: groovy.lang.Closure<String> by extra
version = gitVersion()
group = "fyi.fax.klassindex"
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "17"
languageVersion = "1.8"
apiVersion = "1.8"
}
}
}
val publishConfig = closureOf<Project> {
apply(plugin = "com.vanniktech.maven.publish")
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/matfax/klassindex")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}
}
project("processor", publishConfig)
project("library", publishConfig)