Commit d7044c3b authored by Saif Abdul Cassim's avatar Saif Abdul Cassim

Changed runtimeJar method which returns a Jar task and also changed ideaPlugin...

Changed runtimeJar method which returns a Jar task and also changed ideaPlugin method which returns a copy task, changed both of these by introducing intermediatory methods which are called from the buildscripts
parent f2d27f37
......@@ -82,6 +82,8 @@ fun <T : Jar> Project.runtimeJar(task: T, body: T.() -> Unit = {}): T {
fun Project.runtimeJar(body: Jar.() -> Unit = {}): Jar = runtimeJar(getOrCreateTask("jar", body), { })
fun customRuntimeJar(project : Project): Jar = project.runtimeJar({})
fun Project.sourcesJar(sourceSet: String? = "main", body: Jar.() -> Unit = {}): Jar =
getOrCreateTask("sourcesJar") {
setDuplicatesStrategy(DuplicatesStrategy.EXCLUDE)
......@@ -155,6 +157,8 @@ fun Project.ideaPlugin(subdir: String = "lib"): Copy = ideaPlugin(subdir) {
}
}
fun customIdeaPlugin(project: Project): Copy {retutn project.ideaPlugin()}
fun Project.dist(
targetDir: File? = null,
targetName: String? = null,
......
......@@ -125,7 +125,6 @@ fun DependencyHandlerScope.excludeInAndroidStudio(rootProject: Project, block: D
}
}
fun doExcludeInAndroidStudio(dependencies:DependencyHandlerScope,rootProject: Project, block: DependencyHandlerScope.() -> Unit){dependencies.excludeInAndroidStudio(rootProject, block)}
fun Project.runIdeTask(name: String, ideaPluginDir: File, ideaSandboxDir: File, body: JavaExec.() -> Unit): JavaExec {
......
Markdown is supported
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