-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
40 lines (33 loc) · 1.03 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
plugins {
kotlin("js") version "1.3.72"
maven
}
group = "uk.co.renbinden"
version = "1.4.6"
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-js")
testImplementation("org.jetbrains.kotlin:kotlin-test-js")
}
kotlin.target.browser { }
val repoPassword = file("$projectDir/repo_password.txt").readLines()[0]
tasks {
"uploadArchives"(Upload::class) {
repositories {
withConvention(MavenRepositoryHandlerConvention::class) {
mavenDeployer {
withGroovyBuilder {
"repository"("url" to uri("https://maven.pkg.github.com/alyphen/ilse")) {
"authentication"("userName" to "alyphen", "password" to repoPassword)
}
}
pom.version = project.version.toString()
pom.artifactId = project.name
pom.groupId = project.group.toString()
}
}
}
}
}