mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
test-discovery-plugin-base removed from gradle script, added as maven library
This commit is contained in:
@@ -1,7 +1,4 @@
|
|||||||
// 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.
|
// 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 {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
if (project.ext.inJetBrainsNetwork) {
|
if (project.ext.inJetBrainsNetwork) {
|
||||||
@@ -9,12 +6,10 @@ repositories {
|
|||||||
}
|
}
|
||||||
maven { url "https://jetbrains.bintray.com/intellij-third-party-dependencies" }
|
maven { url "https://jetbrains.bintray.com/intellij-third-party-dependencies" }
|
||||||
maven { url "https://jetbrains.bintray.com/test-discovery" }
|
maven { url "https://jetbrains.bintray.com/test-discovery" }
|
||||||
jcenter()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
buildScriptsDeps
|
buildScriptsDeps
|
||||||
testDiscoveryDeps
|
|
||||||
}
|
}
|
||||||
|
|
||||||
List<String> projectLibraries = [
|
List<String> projectLibraries = [
|
||||||
@@ -54,23 +49,6 @@ task setupBuildScriptsDeps(dependsOn: configurations.buildScriptsDeps, type: Syn
|
|||||||
into "${project.buildDir}/build-scripts-deps"
|
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.50') 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) {
|
private Tuple2<String, Boolean> loadProjectLibraryProperties(String libraryName) {
|
||||||
File file = new File(project.rootDir, "../../.idea/libraries/${libraryName.replace('-', '_')}.xml")
|
File file = new File(project.rootDir, "../../.idea/libraries/${libraryName.replace('-', '_')}.xml")
|
||||||
if (!file.exists()) {
|
if (!file.exists()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user