Skip to content

Commit

Permalink
[BEAM-4846] Temporary work around.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukecwik committed Jul 23, 2018
1 parent ec2daae commit b37fbe9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 24 deletions.
26 changes: 26 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,32 @@ buildscript {

apply plugin: "base"

allprojects {
// Apply a plugin which provides the 'updateOfflineRepository' task that creates an offline
// repository. This offline repository satisfies all Gradle build dependencies and Java
// project dependencies. The offline repository is placed within $rootDir/offline-repo
// but can be overridden by specifying the 'offlineRepositoryRoot' Gradle option.
// Note that parallel build must be disabled when executing 'updateOfflineRepository'
// by specifying '-Dorg.gradle.parallel=false', see
// https://github.com/mdietrichstein/gradle-offline-dependencies-plugin/issues/3
project.apply plugin: "io.pry.gradle.offline_dependencies"

project.offlineDependencies {
repositories {
maven { url offlineRepositoryRoot }
mavenLocal()
mavenCentral()
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
maven { url "http://repo.spring.io/plugins-release" }
}

includeSources = false
includeJavadocs = false
includeIvyXmls = false
}
}

// Plugins which require online access should not be enabled when running in offline mode.
if (!gradle.startParameter.isOffline()) {
apply plugin: "com.gradle.build-scan"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,30 +256,6 @@ class BeamModulePlugin implements Plugin<Project> {
// See https://github.com/mmalohlava/gradle-visteg for further details.
project.apply plugin: "cz.malohlava.visteg"

// Apply a plugin which provides the 'updateOfflineRepository' task that creates an offline
// repository. This offline repository satisfies all Gradle build dependencies and Java
// project dependencies. The offline repository is placed within $rootDir/offline-repo
// but can be overridden by specifying the 'offlineRepositoryRoot' Gradle option.
// Note that parallel build must be disabled when executing 'updateOfflineRepository'
// by specifying '-Dorg.gradle.parallel=false', see
// https://github.com/mdietrichstein/gradle-offline-dependencies-plugin/issues/3
project.apply plugin: "io.pry.gradle.offline_dependencies"

project.offlineDependencies {
repositories {
maven { url offlineRepositoryRoot }
mavenLocal()
mavenCentral()
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
maven { url "http://repo.spring.io/plugins-release" }
}

includeSources = false
includeJavadocs = false
includeIvyXmls = false
}

/** ***********************************************************************************************/
// Define and export a map dependencies shared across multiple sub-projects.
//
Expand Down

0 comments on commit b37fbe9

Please sign in to comment.