addonscript-java/build.gradle

58 lines
1.2 KiB
Groovy
Raw Permalink Normal View History

2020-05-16 16:55:59 +02:00
plugins {
id 'java'
2020-08-06 20:35:54 +02:00
id 'maven-publish'
2020-05-16 16:55:59 +02:00
}
group 'ley.anvil'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
2020-08-06 20:35:54 +02:00
configurations {
deployerJars
}
2020-05-16 16:55:59 +02:00
repositories {
mavenCentral()
}
dependencies {
compile 'com.google.code.gson:gson:+'
compile 'com.google.code.findbugs:jsr305:3.0.2'
2020-07-27 20:59:21 +02:00
compile 'org.apache.maven:maven-artifact:3.6.3'
2020-08-06 20:35:54 +02:00
deployerJars "org.apache.maven.wagon:wagon-ssh:2.2"
testCompile group: 'junit', name: 'junit', version: '4.12'
}
2020-07-27 20:59:21 +02:00
2020-08-06 20:35:54 +02:00
task sourceJar(type: Jar) {
classifier 'sources'
from sourceSets.main.allJava
}
2020-08-06 20:35:54 +02:00
publishing {
publications {
mavenJava(MavenPublication) {
artifactId "addonscript"
2020-08-06 20:35:54 +02:00
from components.java
artifact tasks.sourceJar
}
}
repositories {
maven {
credentials {
username findProperty("username")
password findProperty("password")
}
url = "https://data.tilera.xyz/maven"
}
maven {
credentials {
username findProperty("githubname")
password findProperty("token")
}
url = "https://maven.pkg.github.com/Anvilcraft/addonscript-java"
}
}
2020-05-16 16:55:59 +02:00
}