-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create initial Devenv plugin project
- Loading branch information
Showing
5 changed files
with
101 additions
and
0 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
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,53 @@ | ||
import org.metaborg.convention.Developer | ||
|
||
plugins { | ||
`java-library` | ||
id("org.metaborg.convention.java") | ||
id("org.metaborg.convention.junit") | ||
id("org.metaborg.convention.maven-publish") | ||
`kotlin-dsl` | ||
`java-gradle-plugin` | ||
// We don't use the version catalog here, to avoid a bootstrapping problem. | ||
id("org.metaborg.gitonium") version "1.7.1" | ||
} | ||
|
||
version = gitonium.version | ||
group = "org.metaborg" | ||
description = "The Metaborg Gradle Devenv plugin." | ||
|
||
repositories { | ||
mavenCentral() | ||
gradlePluginPortal() | ||
} | ||
|
||
dependencies { | ||
implementation(gradleApi()) | ||
implementation(gradleKotlinDsl()) | ||
|
||
testImplementation("io.kotest:kotest-runner-junit5:5.8.1") | ||
testImplementation("io.kotest:kotest-assertions-core:5.8.1") | ||
testImplementation(gradleTestKit()) | ||
} | ||
|
||
gradlePlugin { | ||
plugins { | ||
create("devenv.root") { | ||
id = "org.metaborg.devenv.root" | ||
implementationClass = "org.metaborg.devenv.DevenvRootPlugin" | ||
} | ||
} | ||
} | ||
|
||
// Required, either here or on the root project | ||
mavenPublishConvention { | ||
repoOwner.set("metaborg") | ||
repoName.set("metaborg-gradle") | ||
|
||
metadata { | ||
inceptionYear.set("2018") | ||
developers.set(listOf( | ||
Developer("gohla", "Gabriel Konat", "[email protected]"), | ||
Developer("virtlink", "Daniel A. A. Pelsmaeker", "[email protected]"), | ||
)) | ||
} | ||
} |
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,22 @@ | ||
rootProject.name = "devenv-plugin" | ||
|
||
dependencyResolutionManagement { | ||
repositories { | ||
maven("https://artifacts.metaborg.org/content/groups/public/") | ||
mavenCentral() | ||
} | ||
} | ||
|
||
pluginManagement { | ||
repositories { | ||
maven("https://artifacts.metaborg.org/content/groups/public/") | ||
gradlePluginPortal() | ||
} | ||
|
||
includeBuild("../convention-plugin") | ||
includeBuild("../depman") | ||
} | ||
|
||
plugins { | ||
id("org.metaborg.convention.settings") | ||
} |
15 changes: 15 additions & 0 deletions
15
devenv-plugin/src/main/kotlin/org/metaborg/devenv/DevenvRootPlugin.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,15 @@ | ||
package org.metaborg.devenv | ||
|
||
import org.gradle.api.Plugin | ||
import org.gradle.api.Project | ||
|
||
/** | ||
* Special plugin for managing the development environment, such as checking out the correct repositories | ||
* on their correct branches. | ||
*/ | ||
@Suppress("unused") | ||
class DevenvRootPlugin: Plugin<Project> { | ||
override fun apply(target: Project) { | ||
TODO("Not yet implemented") | ||
} | ||
} |
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