[Build] Revert workaround introduced in 2f39a656
This commit is contained in:
committed by
Space
parent
41daf39000
commit
feccc5785f
@@ -56,10 +56,8 @@ task libraryJarWithIr(type: Zip, dependsOn: libraryJarWithoutIr) {
|
|||||||
|
|
||||||
duplicatesStrategy DuplicatesStrategy.FAIL
|
duplicatesStrategy DuplicatesStrategy.FAIL
|
||||||
|
|
||||||
// workaround for https://github.com/gradle/gradle/issues/17936
|
|
||||||
def archiveOperations = services.get(ArchiveOperations)
|
def archiveOperations = services.get(ArchiveOperations)
|
||||||
RegularFile libraryJarWithoutIrFile = libraryJarWithoutIr.archiveFile.get()
|
from { libraryJarWithoutIr.archiveFile.map { archiveOperations.zipTree(it) } }
|
||||||
from { archiveOperations.zipTree(libraryJarWithoutIrFile) }
|
|
||||||
|
|
||||||
dependsOn(":kotlin-test:kotlin-test-js-ir:compileKotlinJs")
|
dependsOn(":kotlin-test:kotlin-test-js-ir:compileKotlinJs")
|
||||||
from {
|
from {
|
||||||
|
|||||||
@@ -276,10 +276,8 @@ task libraryJarWithIr(type: Zip, dependsOn: libraryJarWithoutIr) {
|
|||||||
|
|
||||||
duplicatesStrategy DuplicatesStrategy.FAIL
|
duplicatesStrategy DuplicatesStrategy.FAIL
|
||||||
|
|
||||||
// workaround for https://github.com/gradle/gradle/issues/17936
|
|
||||||
def archiveOperations = services.get(ArchiveOperations)
|
def archiveOperations = services.get(ArchiveOperations)
|
||||||
RegularFile libraryJarWithoutIrFile = libraryJarWithoutIr.archiveFile.get()
|
from { libraryJarWithoutIr.archiveFile.map {archiveOperations.zipTree(it) } }
|
||||||
from { archiveOperations.zipTree(libraryJarWithoutIrFile) }
|
|
||||||
dependsOn(":kotlin-stdlib-js-ir:compileKotlinJs")
|
dependsOn(":kotlin-stdlib-js-ir:compileKotlinJs")
|
||||||
from {
|
from {
|
||||||
def irKlib = tasks.getByPath(":kotlin-stdlib-js-ir:compileKotlinJs")
|
def irKlib = tasks.getByPath(":kotlin-stdlib-js-ir:compileKotlinJs")
|
||||||
|
|||||||
@@ -57,19 +57,15 @@ val runtimeJar = runtimeJar(embeddableCompiler()) {
|
|||||||
sourcesJar {
|
sourcesJar {
|
||||||
val compilerTask = project(":kotlin-compiler").tasks.named<Jar>("sourcesJar")
|
val compilerTask = project(":kotlin-compiler").tasks.named<Jar>("sourcesJar")
|
||||||
dependsOn(compilerTask)
|
dependsOn(compilerTask)
|
||||||
// workaround for https://github.com/gradle/gradle/issues/17936
|
|
||||||
val archiveOperations = serviceOf<ArchiveOperations>()
|
val archiveOperations = serviceOf<ArchiveOperations>()
|
||||||
val sourcesJar by lazy { compilerTask.get().archiveFile.get() }
|
from(compilerTask.map { it.archiveFile }.map { archiveOperations.zipTree(it) })
|
||||||
from({ archiveOperations.zipTree(sourcesJar) })
|
|
||||||
}
|
}
|
||||||
|
|
||||||
javadocJar {
|
javadocJar {
|
||||||
val compilerTask = project(":kotlin-compiler").tasks.named<Jar>("javadocJar")
|
val compilerTask = project(":kotlin-compiler").tasks.named<Jar>("javadocJar")
|
||||||
dependsOn(compilerTask)
|
dependsOn(compilerTask)
|
||||||
// workaround for https://github.com/gradle/gradle/issues/17936
|
|
||||||
val archiveOperations = serviceOf<ArchiveOperations>()
|
val archiveOperations = serviceOf<ArchiveOperations>()
|
||||||
val javadocJarFile by lazy { compilerTask.get().archiveFile.get() }
|
from(compilerTask.map { it.archiveFile }.map { archiveOperations.zipTree(it) })
|
||||||
from({ archiveOperations.zipTree(javadocJarFile) })
|
|
||||||
}
|
}
|
||||||
|
|
||||||
projectTest {
|
projectTest {
|
||||||
|
|||||||
Reference in New Issue
Block a user