Skip to content

Commit

Permalink
Remove publishing to bintray and add GitHub package.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgobbo committed Feb 16, 2022
1 parent a0db349 commit 30adb96
Showing 1 changed file with 11 additions and 26 deletions.
37 changes: 11 additions & 26 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ plugins {
id "java-library"
id "eclipse"
id "maven-publish"
id "com.jfrog.bintray" version "1.8.4"
}

sourceCompatibility = 1.7
Expand All @@ -12,8 +11,6 @@ group = 'ch.psi'

repositories {
mavenCentral()
maven { url "https://artifacts.psi.ch/artifactory/libs-releases" }
maven { url "https://artifacts.psi.ch/artifactory/libs-snapshots" }
}

dependencies {
Expand All @@ -31,7 +28,6 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
from javadoc.destinationDir
}


task fatJar(type: Jar) {
archiveBaseName = project.name + '_all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
Expand All @@ -41,13 +37,23 @@ task fatJar(type: Jar) {

publishing {
repositories {
maven {
credentials {
username githubUser
password githubPwd
}
name = "GitHubPackages"
url = "https://maven.pkg.github.com/paulscherrerinstitute/jcae"
}
maven {
credentials {
username artifactoryUser
password artifactoryPwd
}
name = "Artifactory"
url = artifactoryUrlLibSnap
}

}

publications {
Expand All @@ -60,25 +66,4 @@ publishing {
version version
}
}
}

bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
publications = ['MyPublication']
override = true
publish = true
pkg {
repo = 'hltools'
name = project.name
userOrg = 'paulscherrerinstitute'
licenses = ['GPL-3.0']
vcsUrl = 'https://github.com/paulscherrerinstitute/jcae'
version {
name = project.version
}
}
}



}

0 comments on commit 30adb96

Please sign in to comment.