Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ jobs:
- name: Build with Gradle
uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee
with:
arguments: -Prelease.useLastTag=true build
arguments: build

# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
# the publishing section of your build.gradle
- name: Publish to GitHub Packages
uses: gradle/gradle-build-action@0d13054264b0bb894ded474f08ebb30921341cee
with:
arguments: -Prelease.useLastTag=true publish
arguments: publish
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
24 changes: 18 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,10 @@ buildscript {
mavenCentral()
maven { url = uri("https://plugins.gradle.org/m2/") }
}
dependencies {
classpath("com.netflix.nebula:nebula-release-plugin:16.0.0")
}
}

plugins {
kotlin("jvm") version "1.6.10"
id("com.jfrog.artifactory") version "4.26.2"
`maven-publish`
jacoco
id("org.jetbrains.dokka") version "1.6.10" apply false
Expand All @@ -28,8 +24,6 @@ if (dokkaEnabled) {
apply(plugin = "org.jetbrains.dokka")
}

apply(plugin = "nebula.release")

group = "com.target"
java.sourceCompatibility = JavaVersion.VERSION_11

Expand Down Expand Up @@ -79,4 +73,22 @@ tasks.jacocoTestReport {
csv.isEnabled = false
html.destination = file("${buildDir}/jacocoHtml")
}
}

publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/target/native_memory_allocator")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
}
}
}
publications {
register<MavenPublication>("gpr") {
from(components["java"])
}
}
}