Commit 5d11bb78 authored by Nikita Skvortsov's avatar Nikita Skvortsov
Browse files

perform retrofitting at an earlier stage (classes)

parent 4fe80d2c
Pipeline #2258 passed with stage
in 9 minutes and 33 seconds
......@@ -151,10 +151,13 @@ project(':tools') {
description = "Tools used to build ${parent.description}"
}
def asmCompileTask = project(':asm').tasks["compileJava"]
def asmClasses = files(asmCompileTask.destinationDir)
project(':tools:bnd-module-plugin') {
description = "bnd plugin to build moduleinfo with ${rootProject.description}"
depends = ['biz.aQute.bnd:biz.aQute.bnd:3.4.0']
def asmClasses = project(':asm').sourceSets.main.output
tasks.compileJava.dependsOn(asmCompileTask)
dependencies {
implementation asmClasses
}
......@@ -165,8 +168,9 @@ project(':tools:bnd-module-plugin') {
project(':tools:retrofitter') {
description = "JDK 1.5 class retrofitter based on ${rootProject.description}"
tasks.compileJava.dependsOn(asmCompileTask)
dependencies {
implementation project(':asm').sourceSets.main.output
implementation asmClasses
}
}
......@@ -223,7 +227,8 @@ configure(subprojects.findAll { it.provides }) {
main 'org.objectweb.asm.tools.Retrofitter'
args sourceSets.main.output.classesDirs
}
jar.dependsOn tasks.retrofit
classes.dependsOn tasks.retrofit
}
// Create one backward compatibility checking task for each 'sigtest-*' file
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment