mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Revert "test-discovery-plugin-base removed from gradle script, added as maven library"
This reverts commit 36ef0a7
Revert "test-discovery-plugin-base removed from gradle script, added as maven library"
This reverts commit 73e1887
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
import java.nio.file.Files
|
||||
import java.nio.file.Paths
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
if (project.ext.inJetBrainsNetwork) {
|
||||
@@ -6,10 +9,12 @@ repositories {
|
||||
}
|
||||
maven { url "https://jetbrains.bintray.com/intellij-third-party-dependencies" }
|
||||
maven { url "https://jetbrains.bintray.com/test-discovery" }
|
||||
jcenter()
|
||||
}
|
||||
|
||||
configurations {
|
||||
buildScriptsDeps
|
||||
testDiscoveryDeps
|
||||
}
|
||||
|
||||
List<String> projectLibraries = [
|
||||
@@ -49,6 +54,23 @@ task setupBuildScriptsDeps(dependsOn: configurations.buildScriptsDeps, type: Syn
|
||||
into "${project.buildDir}/build-scripts-deps"
|
||||
}
|
||||
|
||||
task setupTestDiscoveryDeps {
|
||||
doFirst {
|
||||
def dir = "${project.buildDir}/test-discovery-deps"
|
||||
def testDiscoveryDeps = file(dir)
|
||||
testDiscoveryDeps.deleteDir()
|
||||
testDiscoveryDeps.mkdirs()
|
||||
configurations.detachedConfiguration(
|
||||
(dependencies
|
||||
.create('org.jetbrains.testDiscovery:test-discovery-plugin-base:0.1.52') as ModuleDependency)
|
||||
.exclude(group: 'org.codehaus.groovy', module: 'groovy-all')
|
||||
).files.each { from ->
|
||||
def into = Paths.get("$dir/$from.name")
|
||||
Files.copy(from.toPath(), into)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private Tuple2<String, Boolean> loadProjectLibraryProperties(String libraryName) {
|
||||
File file = new File(project.rootDir, "../../.idea/libraries/${libraryName.replace('-', '_')}.xml")
|
||||
if (!file.exists()) {
|
||||
|
||||
Reference in New Issue
Block a user