-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get rid of dynamic loading of the SKIE Gradle Plugin.
- Loading branch information
1 parent
1b4d6ce
commit 652f073
Showing
63 changed files
with
356 additions
and
512 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
38 changes: 38 additions & 0 deletions
38
SKIE/gradle-plugin/src/main/kotlin/co/touchlab/skie/plugin/SkieLoaderPlugin.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package co.touchlab.skie.plugin | ||
|
||
import co.touchlab.skie.gradle.KotlinCompilerVersion | ||
import co.touchlab.skie.gradle_plugin.BuildConfig | ||
import co.touchlab.skie.plugin.configuration.SkieExtension | ||
import org.gradle.api.Named | ||
import org.gradle.api.Plugin | ||
import org.gradle.api.Project | ||
import org.gradle.api.attributes.Category | ||
import org.gradle.api.attributes.LibraryElements | ||
import org.gradle.api.attributes.Usage | ||
import org.gradle.api.attributes.plugin.GradlePluginApiVersion | ||
import org.gradle.api.model.ObjectFactory | ||
import org.gradle.configurationcache.extensions.serviceOf | ||
import org.gradle.internal.classloader.HashingClassLoaderFactory | ||
import org.gradle.internal.classpath.DefaultClassPath | ||
import org.gradle.util.GradleVersion | ||
import org.jetbrains.kotlin.gradle.plugin.KotlinBasePlugin | ||
|
||
// @Suppress("unused") | ||
// abstract class SkieLoaderPlugin : Plugin<Project> { | ||
// | ||
// override fun apply(project: Project) { | ||
// // We need to register the extension here, so that Gradle knows the type of it in the build script. | ||
// | ||
// | ||
// project.loadSkieGradlePlugin(kotlinVersion) | ||
// } | ||
// | ||
// | ||
// private fun Project.loadSkieGradlePlugin(kotlinVersion: String) { | ||
// val gradleVersion = GradleVersion.current().version | ||
// logger.info("Resolving SKIE gradle plugin for Kotlin plugin version $kotlinVersion and Gradle version $gradleVersion") | ||
// | ||
// plugins.apply(SkieGradlePlugin::class.java) | ||
// } | ||
// | ||
// } |
Oops, something went wrong.