apply plugin: 'jacoco'
apply plugin: 'eclipse'
apply plugin: 'idea'
+ apply plugin: 'maven-publish'
group 'de.spring.jpa'
version '1.0-SNAPSHOT'
maven { url 'https://dl.bintray.com/palantir/releases' }
}
+
+ task javadocJar(type: Jar) {
+ from javadoc
+ classifier 'javadoc'
+ }
+
+ task sourceJar(type: Jar) {
+ from sourceSets.main.java
+ classifier 'sources'
+ }
+
+ publishing {
+ publications {
+ mavenJava(MavenPublication) {
+ if (plugins.withType(WarPlugin)) {
+ from components.web
+ } else {
+ from components.java
+ }
+
+ artifact sourceJar {
+ classifier 'sources'
+ }
+ artifact javadocJar {
+ classifier 'javadoc'
+ }
+ }
+ }
+ repositories {
+ maven {
+ credentials {
+ username project.artifactory_username
+ password project.artifactory_password
+ }
+
+ if(project.version.endsWith('-SNAPSHOT')) {
+ url 'http://artifactory/artifactory/libs-snapshot-local'
+ } else {
+ url 'http://artifactory/artifactory/libs-release-local'
+ }
+ }
+ }
+ }
+
dependencies {
// 1/3 Required dependency for log4j 2 with slf4j: binding between log4j2 and slf4j
compile("org.apache.logging.log4j:log4j-slf4j-impl:${slf4jVersion}")