From 40818f5b0b6bf385867316b904059e846952dec9 Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Fri, 3 Jul 2020 10:36:35 +0700 Subject: [PATCH] Updated publish gradle libra --- build.gradle | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/build.gradle b/build.gradle index c1161a2..e3021bd 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,6 @@ plugins { id 'java' + id 'maven' } group 'com.cubetiqs' @@ -8,7 +9,7 @@ version '1.0-SNAPSHOT' repositories { mavenCentral() maven { - url "https://oss-internal.cubetiqs.com/repository/maven-public/" + url "${nexusUrl}/repository/maven-public/" } } @@ -19,15 +20,15 @@ dependencies { testCompile group: 'junit', name: 'junit', version: '4.12' } -//uploadArchives { -// repositories { -// mavenDeployer { -// repository(url: "${nexusUrl}/repository/maven-releases/") { -// authentication(userName: nexusUsername, password: nexusPassword) -// } -// snapshotRepository(url: "${nexusUrl}/repository/maven-snapshots") { -// authentication(userName: nexusUsername, password: nexusPassword) -// } -// } -// } -//} \ No newline at end of file +uploadArchives { + repositories { + mavenDeployer { + repository(url: "${nexusUrl}/repository/maven-releases/") { + authentication(userName: nexusUsername, password: nexusPassword) + } + snapshotRepository(url: "${nexusUrl}/repository/maven-snapshots") { + authentication(userName: nexusUsername, password: nexusPassword) + } + } + } +} \ No newline at end of file