Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle plugin for appling transformation during gradle build #1

Merged
merged 2 commits into from Sep 20, 2017

Conversation

KirillTim
Copy link
Contributor

usage example:

apply plugin: 'kotlinx.atomicfu.transformer'
...
atomicFUTransform {
    inputDir = compileKotlin.destinationDir
    outputDir = file(CLASSES_AFTER_ATOMICFU_TRANSFORM)
    classPath = sourceSets.main.runtimeClasspath.asPath.split(":")
}
...
atomicFUTransform.dependsOn compileKotlin
classes.dependsOn atomicFUTransform

@elizarov
Copy link
Contributor

You've forgot to add kotlinx.atomicfu.plugin.gradle.AtomicFUGradlePlugin to commit

@elizarov
Copy link
Contributor

Also, let's call graddle plugin just kotlinx.atomicfu, and its configuration section DLS just atomicFU, so that is can be used like this:

apply plugin: 'kotlinx.atomicfu'
...
atomicFU {
    inputDir = compileKotlin.destinationDir
    outputDir = file(CLASSES_AFTER_ATOMICFU_TRANSFORM)
    classPath = sourceSets.main.runtimeClasspath.asPath.split(":")
}
...
atomicFU.dependsOn compileKotlin
classes.dependsOn atomicFU

Also can we have all of that apply by default when you do apply plugin: 'kotlinx.atomicfu'?

@elizarov
Copy link
Contributor

Change of name: kotlinx-atomicfu (mind the dash!)

@elizarov elizarov merged commit 64d45e1 into Kotlin:master Sep 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants