Roman Elizarov | 3145290 | 2018-04-11 13:58:19 +0300 | [diff] [blame] | 1 | apply plugin: 'kotlinx-atomicfu' |
| 2 | |
| 3 | dependencies { |
| 4 | compileOnly "org.jetbrains.kotlinx:atomicfu:$atomicFU_version" |
| 5 | testCompile "org.jetbrains.kotlinx:atomicfu:$atomicFU_version" |
| 6 | } |
| 7 | |
| 8 | atomicFU { |
| 9 | inputFiles = sourceSets.main.output.classesDirs |
| 10 | outputDir = file("$buildDir/classes-atomicfu/main") |
| 11 | classPath = sourceSets.main.runtimeClasspath |
| 12 | } |
| 13 | |
| 14 | jar { |
| 15 | mainSpec.sourcePaths.clear() // hack to clear existing paths |
| 16 | from files(atomicFU.outputs, sourceSets.main.output.resourcesDir) |
| 17 | } |
| 18 | |
| 19 | test { |
| 20 | classpath = files(configurations.testRuntime, atomicFU.outputs, sourceSets.test.output.classesDirs, |
| 21 | sourceSets.main.output.resourcesDir) |
| 22 | } |