This commit is contained in:
@@ -13,4 +13,4 @@ jobs:
|
|||||||
- name: Execute Gradle build
|
- name: Execute Gradle build
|
||||||
env:
|
env:
|
||||||
PUBLISHER_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}
|
PUBLISHER_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}
|
||||||
run: ./gradlew build publishMavenPublicationToGiteaRepository
|
run: ./gradlew build publish
|
||||||
|
@@ -73,9 +73,6 @@ allprojects {
|
|||||||
pluginManager.withPlugin('maven-publish') {
|
pluginManager.withPlugin('maven-publish') {
|
||||||
publishing {
|
publishing {
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
|
||||||
url = 'https://mvn.woggioni.net/'
|
|
||||||
}
|
|
||||||
maven {
|
maven {
|
||||||
name = "Gitea"
|
name = "Gitea"
|
||||||
url = uri(getProperty('gitea.maven.url'))
|
url = uri(getProperty('gitea.maven.url'))
|
||||||
|
@@ -8,6 +8,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
import net.woggioni.gradle.graalvm.NativeImageTask
|
import net.woggioni.gradle.graalvm.NativeImageTask
|
||||||
|
import net.woggioni.gradle.envelope.EnvelopeJarTask
|
||||||
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
|
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@@ -56,6 +57,8 @@ configureNativeImage {
|
|||||||
mergeConfiguration = true
|
mergeConfiguration = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Provider<EnvelopeJarTask> envelopeJarTaskProvider = tasks.named('envelopeJar')
|
||||||
|
|
||||||
Provider<NativeImageTask> nativeImageTaskProvider = tasks.named("nativeImage") {
|
Provider<NativeImageTask> nativeImageTaskProvider = tasks.named("nativeImage") {
|
||||||
useMusl = true
|
useMusl = true
|
||||||
buildStaticImage = true
|
buildStaticImage = true
|
||||||
@@ -67,11 +70,12 @@ tasks.named(BasePlugin.ASSEMBLE_TASK_NAME, Task) {
|
|||||||
|
|
||||||
artifacts {
|
artifacts {
|
||||||
archives nativeImageTaskProvider.map(NativeImageTask.&getOutputFile)
|
archives nativeImageTaskProvider.map(NativeImageTask.&getOutputFile)
|
||||||
|
archives envelopeJarTaskProvider.map(EnvelopeJarTask.&getArchiveFile)
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
myDistribution(MavenPublication) {
|
maven(MavenPublication) {
|
||||||
artifact envelopeJar
|
artifact envelopeJar
|
||||||
def host = DefaultNativePlatform.host()
|
def host = DefaultNativePlatform.host()
|
||||||
artifact(
|
artifact(
|
||||||
|
Reference in New Issue
Block a user