group 'nl.astraeus' version '2.0.5-SNAPSHOT' apply plugin: 'java' apply plugin: 'idea' apply plugin: 'maven' apply plugin: 'findbugs' apply plugin: 'maven-publish' sourceSets { main.java.srcDirs += 'src' main.resources.srcDirs += 'src' test.java.srcDirs += 'test' test.resources.srcDirs += 'test' } sourceCompatibility = 1.7 targetCompatibility = 1.7 repositories { mavenCentral() maven { url 'https://jitpack.io' } maven { url "http://nexus.astraeus.nl/nexus/content/groups/public" } } dependencies { testCompile group: 'junit', name: 'junit', version: '4.11' testCompile "org.slf4j:slf4j-simple:1.7.23" testCompile "com.h2database:h2:1.4.+" testCompile "nl.astraeus:simple-jdbc-stats:1.6.0" implementation 'com.github.User:Repo:Tag' compile "nl.astraeus:very-simple-templates:1.4" compile "org.slf4j:slf4j-api:1.7.21" } uploadArchives { repositories { mavenDeployer { repository(url: "http://nexus.astraeus.nl/nexus/content/repositories/releases") { authentication(userName: nexusUsername, password: nexusPassword) } snapshotRepository(url: "http://nexus.astraeus.nl/nexus/content/repositories/snapshots") { authentication(userName: nexusUsername, password: nexusPassword) } } } } findbugs { ignoreFailures = true } javadoc { failOnError = false } 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 } publishing { publications { mavenJava(MavenPublication) { from components.java } } } task fatJar(type: Jar) { manifest { attributes 'Implementation-Title': 'simple-database', 'Implementation-Version': version } baseName = project.name + '-nodep' from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } } with jar }