-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from Over-Run/nfd
- Loading branch information
Showing
63 changed files
with
4,571 additions
and
1,511 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
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
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
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 |
---|---|---|
@@ -1,9 +1,23 @@ | ||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget | ||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | ||
|
||
plugins { `kotlin-dsl` } | ||
|
||
dependencies { | ||
implementation("org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin:2.0.20") | ||
} | ||
val kotlinPluginVersion: String by rootProject | ||
val kotlinTargetJdkVersion: String by rootProject | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation("org.jetbrains.kotlin.jvm:org.jetbrains.kotlin.jvm.gradle.plugin:$kotlinPluginVersion") | ||
} | ||
|
||
tasks.withType<JavaCompile>().configureEach { | ||
targetCompatibility = kotlinTargetJdkVersion | ||
} | ||
|
||
tasks.withType<KotlinCompile>().configureEach { | ||
compilerOptions { jvmTarget = JvmTarget.fromTarget(kotlinTargetJdkVersion) } | ||
} |
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,2 @@ | ||
kotlinPluginVersion=2.1.0 | ||
kotlinTargetJdkVersion=22 |
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 |
---|---|---|
@@ -1,20 +1,12 @@ | ||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget | ||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | ||
|
||
plugins { kotlin("jvm") } | ||
|
||
val jdkVersion: String by rootProject | ||
val javaPoetVersion: String by rootProject | ||
val kotlinTargetJdkVersion: String by rootProject | ||
|
||
repositories { mavenCentral() } | ||
|
||
tasks.withType<KotlinCompile> { | ||
compilerOptions { jvmTarget.set(JvmTarget.fromTarget(kotlinTargetJdkVersion)) } | ||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
tasks.withType<JavaCompile> { | ||
javaCompiler.set(javaToolchains.compilerFor { | ||
targetCompatibility = kotlinTargetJdkVersion | ||
languageVersion.set(JavaLanguageVersion.of(jdkVersion)) | ||
}) | ||
dependencies { | ||
implementation("com.palantir.javapoet:javapoet:$javaPoetVersion") | ||
} |
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,27 @@ | ||
# The Modules Customizer | ||
|
||
## Introduction | ||
|
||
The modules customizer is provided in order to comfort the start of users' development. | ||
|
||
## Selecting Version | ||
|
||
Only the latest snapshot version is provided. | ||
|
||
## Selecting Modules | ||
|
||
Different _modules_ and CPU _architectures_ may be chosen. | ||
The customizer includes a set of _presets_, which contains various modules that are frequently used together. | ||
|
||
There is a link to a table of supported architectures. | ||
Note that if a module is selected with its unsupported architecture, | ||
the customizer will not block you from copying the code, | ||
but your build system will not be able to find an appropriate artifact. | ||
|
||
## Generated Code | ||
|
||
The _Gradle_ build script contains a repository for the current selected version and dependencies of selected modules. | ||
|
||
_VM Option_ contains a line of JVM argument to enable native access for selected modules. | ||
|
||
_JAR-file manifest attribute_ contains an attribute in MANIFEST.MF which just enables native access for every module. |
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
Oops, something went wrong.