MiniDigger/Hangar

View on GitHub
OreTestPlugin/build.gradle

Summary

Maintainability
Test Coverage
buildscript {
    repositories {
        mavenLocal()
        mavenCentral()
        maven {
            name 'sponge-repo'
            url 'https://repo.spongepowered.org/maven'
        }
    }
    dependencies {
        classpath 'org.spongepowered:spongegradle:0.8.2-SNAPSHOT'
    }
}

apply plugin: 'org.spongepowered.plugin'
apply plugin: 'org.spongepowered.meta'
apply plugin: 'org.spongepowered.ore'
apply plugin: 'signing'

//plugins {
//    id 'org.spongepowered.plugin' version '0.8.2-SNAPSHOT'
//}

group = 'org.spongepowered.ore'
version = '1.0.1'
description = 'Ore test plugin'

signing {
    sign configurations.archives
}

sponge.plugin {
    id = 'oretest'
    meta {
        name = "Ore Test Plugin"
    }
}

task sourcesJar(type: Jar, dependsOn: classes) {
    classifier = 'sources'
    from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
    classifier = 'javadoc'
    from javadoc.destinationDir
}

artifacts {
    archives sourcesJar
    archives javadocJar
}

oreDeploy {
    instanceUrl = 'http://localhost:9000'
    apiKey = '8c115d0c9b9e425281d870e329dd6741'
    recommended = false
    deploy = configurations.archives
    channel = 'release'
}

dependencies {
    compile 'org.spongepowered:spongeapi:7.0.0'
}