8000 first working sketch of a customized SciJava plugin to enforce pure G… · scijava/pom-scijava@6249268 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6249268

Browse files
committed
first working sketch of a customized SciJava plugin to enforce pure Gradle declarative style
1 parent 97d7c82 commit 6249268

File tree

52 files changed

+486
-44
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+486
-44
lines changed

.idea/compiler.xml

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 13 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules/declarative/buildSrc/declarative.buildSrc.main.iml

Lines changed: 0 additions & 8 deletions
This file was deleted.

gradle/declarative/buildSrc/build.gradle.kts renamed to gradle/declarative-playground/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
`kotlin-dsl`
2+
embeddedKotlin("jvm").apply(false)
33
}
44

55
repositories {
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
plugins {
2+
id("org.scijava.library")
3+
}
4+
5+
javaLibrary {
6+
javaVersion = 11
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.example.utils;
2+
3+
public class Utils {
4+
public String getWelcome() {
5+
return "Welcome to the java-utils library!";
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
plugins {
2+
id("org.scijava.kotlin-library")
3+
}
4+
5+
kotlinJvmLibrary {
6+
javaVersion = 21
7+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.example.utils
2+
3+
class Utils {
4+
val welcome: String
5+
get() = "Welcome to the kotlin-jvm-utils library!"
6+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
rootProject.name = "declarative-playground"
2+
3+
rootDir.list()!!.forEach {
4+
if ("java" in it || "kotlin" in it)
5+
include(it)
6+
}
7+
includeBuild("../declarative")
8+
9+
dependencyResolutionManagement {
10+
repositories {
11+
mavenCentral()
12+
}
13+
}
14+
15+
pluginManagement {
16+
repositories { mavenCentral() }
17+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
plugins {
2+
id("org.scijava.application")
3+
}
4+
5+
javaApplication {
6+
javaVersion = 21
7+
mainClass = "com.example.App"
8+
9+
dependencies {
10+
implementation(project(":java-util"))
11+
implementation("com.google.guava:guava:32.1.3-jre")
12+
}
13+
}

0 commit comments

Comments
 (0)
0