Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apply plugin: 'java'
- apply plugin: 'maven'
- apply plugin: 'maven-publish'
- version = "${plugin_version}"
- group = "${group}"
- archivesBaseName = "${baseName}"
- sourceCompatibility = JavaVersion.VERSION_1_8
- targetCompatibility = JavaVersion.VERSION_1_8
- configurations {
- shade
- compile.extendsFrom shade
- }
- ext {
- nexusUsername = "$System.env.NEXUS_USERNAME"
- nexusPassword = "$System.env.NEXUS_PASSWORD"
- }
- uploadArchives {
- repositories {
- mavenDeployer {
- repository(url: "http://repo.mallmc.info/repository/MallMC/") {
- authentication(userName: nexusUsername, password: nexusPassword)
- }
- }
- }
- }
- publishing {
- publications {
- mavenJava(MavenPublication) {
- from components.java
- }
- }
- }
- repositories {
- mavenLocal()
- maven {
- name "MongoDB"
- url 'https://oss.sonatype.org/content/repositories/snapshots'
- }
- maven {
- name "Redis"
- url "http://central.maven.org/maven2/"
- }
- maven {
- name "Spigot"
- url "https://hub.spigotmc.org/nexus/content/repositories/snapshots/"
- }
- maven {
- url "https://repo.mallmc.info/repository/MallMC/"
- credentials {
- username "${nexusUsername}"
- password "${nexusPassword}"
- }
- }
- }
- dependencies {
- compile "info.mallmc.framework:Framework:${framework_version}"
- compile "org.spigotmc:spigot:${bukkit_version}"
- compile "org.mongodb.morphia:morphia:${mongo_verison}"
- }
- jar {
- configurations.shade.each { dep ->
- from(project.zipTree(dep)) {
- exclude 'META-INF', 'META-INF/**'
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement