Lombok tests draft

This commit is contained in:
Tagir Valeev
2019-03-01 09:48:57 +07:00
parent 272a7067f3
commit 75e50dd3fe
2 changed files with 23 additions and 1 deletions
+3 -1
View File
@@ -40,13 +40,15 @@ catch (UnknownHostException e) {
apply from: 'setupJdk.gradle'
apply from: 'setupJbre.gradle'
apply from: 'setupKotlin.gradle'
apply from: 'setupThirdPartyPlugins.gradle'
apply from: 'setupJetSign.gradle'
apply from: 'setupAndroidSdk.gradle'
apply from: 'setupBuildScriptsDeps.gradle'
apply from: 'setupToolboxLiteGen.gradle'
apply from: 'setupBundledMaven.gradle'
task setupDependencies(dependsOn: ['setupJdks', 'setupJbre', 'setupKotlinPlugin', 'setupJetSign', 'setupBundledMaven'], group: 'dependencies')
task setupDependencies(dependsOn: ['setupJdks', 'setupJbre', 'setupKotlinPlugin', 'setupThirdPartyPlugins',
'setupJetSign', 'setupBundledMaven'], group: 'dependencies')
clean.dependsOn('cleanSetupJdks', 'cleanSetupJbre', 'cleanSetupKotlinPlugin', 'cleanSetupJetSign', 'cleanSetupBundledMaven')
task dependenciesFile() {
@@ -0,0 +1,20 @@
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
repositories {
maven { url 'https://cache-redirector.jetbrains.com/plugins.jetbrains.com/maven' }
}
configurations {
lombokPlugin
}
def lombokPluginVersion = "Lombook Plugin:0.23-EAP"
def version = lombokPluginVersion.substring(lombokPluginVersion.indexOf(':') + 1)
dependencies {
lombokPlugin "com.jetbrains.plugins:$lombokPluginVersion@zip"
}
task setupThirdPartyPlugins(dependsOn: configurations.lombokPlugin, type: Sync) {
from zipTree(configurations.lombokPlugin.singleFile)
into "${project.buildDir}/thirdPartyPlugins/lombok"
rename { String fileName -> fileName.replace("-" + version + ".jar", ".jar") }
}