From 33adcf9c3c933b18741312565dfe863c93a748c2 Mon Sep 17 00:00:00 2001 From: eyalbe4 Date: Thu, 12 Sep 2019 14:09:14 +0300 Subject: [PATCH] Fix build.gradle. --- build.gradle | 35 +++++++++++++++-------------------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/build.gradle b/build.gradle index 7860e425..4f18621f 100644 --- a/build.gradle +++ b/build.gradle @@ -10,7 +10,6 @@ buildscript { } allprojects { - apply plugin: 'maven' apply plugin: 'maven-publish' apply plugin: 'com.jfrog.artifactory' @@ -22,14 +21,24 @@ allprojects { project.tasks.withType(Jar).each { it.version = currentVersion } - - artifactory { - contextUrl = 'https://oss.jfrog.org' - } } artifactoryPublish.skip = true +artifactory { + contextUrl = 'https://oss.jfrog.org' + resolve { + repository { + repoKey = 'libs-release' + } + } + publish { + defaults { + publications 'main' + } + } +} + subprojects { apply plugin: 'java' @@ -46,21 +55,7 @@ subprojects { compile 'com.fasterxml.jackson.core:jackson-databind:2.9.5' compile 'com.fasterxml.jackson.core:jackson-annotations:2.4.6' } - - artifactory { - contextUrl = 'https://oss.jfrog.org' - resolve { - repository { - repoKey = 'libs-release' - } - } - publish { - defaults { - publications 'main' - } - } - } - + task sourcesJar(type: Jar, dependsOn: classes) { classifier = 'sources' from sourceSets.main.allSource