mirror of
https://github.com/tadfisher/gradle2nix.git
synced 2026-01-12 07:50:53 -05:00
Rewrite plugin, use filenames in lockfile
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
plugins {
|
||||
`kotlin-dsl`
|
||||
}
|
||||
|
||||
repositories {
|
||||
gradlePluginPortal()
|
||||
}
|
||||
|
||||
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"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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