Skip to content

Commit

Permalink
Update repos for simple template (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
tovbinm committed Feb 1, 2018
1 parent 4174c11 commit f9f8f11
Showing 1 changed file with 9 additions and 36 deletions.
45 changes: 9 additions & 36 deletions templates/simple/build.gradle.template
Original file line number Diff line number Diff line change
@@ -1,54 +1,27 @@
buildscript {
repositories {
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
maven { url "https://oss.sonatype.org/content/repositories/releases" }
maven { url 'http:https://repo.spring.io/plugins-release' }
maven { url 'https://jitpack.io' }
mavenCentral()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.0'
classpath 'com.commercehub.gradle.plugin:gradle-avro-plugin:0.8.0'
classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:4.4.18'
//classpath 'org.github.ngbinh.scalastyle:gradle-scalastyle-plugin_2.11:0.8.2'
}
}

if (!project.hasProperty('artifactory_contextUrl')) {
project.ext { artifactory_contextUrl = 'https://repo.sfiqautomation.com/artifactory' }
}
if (!project.hasProperty('artifactory_user')) {
project.ext {
artifactory_user = ''
artifactory_password = ''
}
}

def artifactoryCredentials = {
username "${artifactory_user}"
password "${artifactory_password}"
}

repositories {
maven {
url "${artifactory_contextUrl}/libs-release"
credentials artifactoryCredentials
}
maven {
url "${artifactory_contextUrl}/libs-snapshot"
credentials artifactoryCredentials
}
maven {
url "${artifactory_contextUrl}/plugins-release"
credentials artifactoryCredentials
}
maven {
url "${artifactory_contextUrl}/plugins-snapshot"
credentials artifactoryCredentials
url "https://raw.githubusercontent.com/salesforce/op/mvn-repo/releases"
credentials {
// Generate github api token here - https://goo.gl/ANZ9oz
// and then set it as an environment variable `export GITHUB_API_TOKEN=<MY_TOKEN>`
username = System.getenv("GITHUB_API_TOKEN")
password "" // leave the password empty
}
authentication { digest(BasicAuthentication) }
}
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
maven { url "http:https://maven.twttr.com/" }
maven { url "https://jitpack.io" }
}

Expand Down

0 comments on commit f9f8f11

Please sign in to comment.