chore: make publishable
This commit is contained in:
parent
759dc943cc
commit
c27d4c6450
3 changed files with 23 additions and 2 deletions
20
build.gradle
20
build.gradle
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,2 +1,2 @@
|
|||
rootProject.name = 'modpackbuilder'
|
||||
rootProject.name = 'gradlehaxe'
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue