[FIX] Починил публикацию в скриптах gradle.

This commit is contained in:
Zaxar163 2019-08-13 14:49:41 +03:00
parent 8b71025896
commit 50a9d96f71
5 changed files with 86 additions and 85 deletions

View file

@ -57,6 +57,7 @@ task cleanjar(type: Jar, dependsOn: jar) {
pack project(':LauncherAPI')
bundle 'org.ow2.asm:asm-commons:7.1'
bundle 'mysql:mysql-connector-java:8.0.16'
bundle 'org.postgresql:postgresql:42.2.6'
bundle 'org.jline:jline:3.11.0'
bundle 'org.jline:jline-reader:3.11.0'
bundle 'org.jline:jline-terminal:3.11.0'
@ -66,7 +67,7 @@ pack project(':LauncherAPI')
bundle 'commons-codec:commons-codec:1.12'
bundle 'org.javassist:javassist:3.25.0-GA'
bundle 'io.netty:netty-all:4.1.36.Final'
bundle 'org.hibernate:hibernate-core:5.4.3.Final'
bundle 'org.hibernate:hibernate-core:5.4.4.Final'
bundle 'org.bouncycastle:bcpkix-jdk15on:1.61'
bundle 'org.slf4j:slf4j-simple:1.7.25'
@ -162,7 +163,6 @@ task dumpClientLibs(type: Copy) {
build.dependsOn tasks.dumpLibs, tasks.dumpCompileOnlyLibs, tasks.dumpClientLibs, tasks.bundle, tasks.cleanjar
publishing {
publications {

View file

@ -48,14 +48,15 @@
defaultTasks 'build'
if (hasProperty('mavenUsername') && hasProperty('mavenPassword'))
publishing {
repositories {
maven {
// change URLs to point to your repos, e.g. http://my.org/repo
url = version.endsWith('SNAPSHOT') ? mavenSnapshotRepository : mavenReleaseRepository
url = version.endsWith('SNAPSHOT') ? 'https://oss.sonatype.org/content/repositories/snapshots/' : 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials {
username mavenUsername
password mavenPassword
username getProperty('mavenUsername')
password getProperty('mavenPassword')
}
}
}