chore: make publishable

This commit is contained in:
Timo Ley 2024-10-22 19:57:16 +02:00
parent 759dc943cc
commit c27d4c6450
3 changed files with 23 additions and 2 deletions

View file

@ -44,7 +44,7 @@ pluginBundle {
gradlePlugin {
plugins {
gradlehaxe {
id = "net.anvilcraft.gradlehaxe"
id = "haxe"
displayName = "GradleHaxe"
description = "Haxe compatiblity for Gradle"
implementationClass = "net.anvilcraft.gradlehaxe.BuilderPlugin"
@ -52,3 +52,21 @@ gradlePlugin {
}
}
publishing {
tasks.publish.dependsOn 'build'
repositories {
if (project.hasProperty('mvnURL')) {
maven {
credentials {
username findProperty("mvnUsername")
password findProperty("mvnPassword")
}
url = findProperty("mvnURL")
}
}
else {
mavenLocal()
}
}
}

View file

@ -1,2 +1,2 @@
rootProject.name = 'modpackbuilder'
rootProject.name = 'gradlehaxe'

View file

@ -8,6 +8,7 @@ import java.util.jar.JarFile;
import org.apache.commons.io.FileUtils;
import org.gradle.api.provider.Property;
import org.gradle.api.tasks.Internal;
import org.gradle.api.tasks.SourceSet;
import org.gradle.api.tasks.TaskAction;
import org.gradle.api.tasks.compile.AbstractCompile;
@ -73,8 +74,10 @@ public abstract class CompileHaxeTask extends AbstractCompile {
}
}
@Internal
public abstract Property<SourceSet> getSS();
@Internal
public CompileOptions getOptions() {
return this.options;
}