Rewrite MultiplatformProjectImportingTest to use testData directory
This commit is contained in:
+58
@@ -0,0 +1,58 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.31")
|
||||
}
|
||||
}
|
||||
|
||||
project('project1') {
|
||||
apply plugin: 'kotlin-platform-common'
|
||||
}
|
||||
|
||||
project('project2') {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
apply plugin: 'kotlin-platform-jvm'
|
||||
|
||||
sourceSets {
|
||||
main
|
||||
main2
|
||||
}
|
||||
|
||||
task myJar(type: Jar) {
|
||||
baseName = 'project2-jar'
|
||||
from sourceSets.main.output
|
||||
from sourceSets.main2.output
|
||||
}
|
||||
|
||||
configurations {
|
||||
myConfig
|
||||
}
|
||||
|
||||
artifacts {
|
||||
myConfig myJar
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implement project(':project1')
|
||||
}
|
||||
}
|
||||
|
||||
project('project3') {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
apply plugin: 'kotlin-platform-jvm'
|
||||
apply plugin: 'kotlin'
|
||||
|
||||
dependencies {
|
||||
compile(project(path: ':project2', configuration: 'myConfig')) { transitive = false }
|
||||
}
|
||||
}
|
||||
|
||||
+1
@@ -0,0 +1 @@
|
||||
include ':project1', ':project2', ':project3'
|
||||
Reference in New Issue
Block a user