Skip to content

Commit db6425f

Browse files
try to get publish to github packages working
1 parent 841322c commit db6425f

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

build.gradle.kts

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,10 @@ buildscript {
66
mavenCentral()
77
maven { url = uri("https://plugins.gradle.org/m2/") }
88
}
9-
dependencies {
10-
classpath("com.netflix.nebula:nebula-release-plugin:16.0.0")
11-
}
129
}
1310

1411
plugins {
1512
kotlin("jvm") version "1.6.10"
16-
id("com.jfrog.artifactory") version "4.26.2"
1713
`maven-publish`
1814
jacoco
1915
id("org.jetbrains.dokka") version "1.6.10" apply false
@@ -28,8 +24,6 @@ if (dokkaEnabled) {
2824
apply(plugin = "org.jetbrains.dokka")
2925
}
3026

31-
apply(plugin = "nebula.release")
32-
3327
group = "com.target"
3428
java.sourceCompatibility = JavaVersion.VERSION_11
3529

@@ -79,4 +73,22 @@ tasks.jacocoTestReport {
7973
csv.isEnabled = false
8074
html.destination = file("${buildDir}/jacocoHtml")
8175
}
76+
}
77+
78+
publishing {
79+
repositories {
80+
maven {
81+
name = "GitHubPackages"
82+
url = uri("https://maven.pkg.github.com/target/native_memory_allocator")
83+
credentials {
84+
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
85+
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
86+
}
87+
}
88+
}
89+
publications {
90+
register<MavenPublication>("gpr") {
91+
from(components["java"])
92+
}
93+
}
8294
}

0 commit comments

Comments
 (0)