mirror of
https://github.com/tadfisher/gradle2nix.git
synced 2026-01-12 07:50:53 -05:00
WIP
This commit is contained in:
@@ -9,3 +9,12 @@ repositories {
|
||||
dependencies {
|
||||
implementation("com.gradle.publish:plugin-publish-plugin:1.2.1")
|
||||
}
|
||||
|
||||
gradlePlugin {
|
||||
plugins {
|
||||
register("apply-plugin-publish") {
|
||||
id = "com.example.apply-plugin-publish"
|
||||
implementationClass = "com.example.ApplyPluginPublishPlugin"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
package com.example
|
||||
|
||||
plugins {
|
||||
id("com.gradle.plugin-publish")
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package com.example
|
||||
|
||||
import org.gradle.api.Plugin
|
||||
import org.gradle.api.Project
|
||||
|
||||
open class ApplyPluginPublishPlugin : Plugin<Project> {
|
||||
override fun apply(project: Project) {
|
||||
project.pluginManager.apply("com.gradle.plugin-publish")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user