temporary commit2
This commit is contained in:
21
build.gradle
21
build.gradle
@@ -2,9 +2,9 @@ plugins {
|
||||
id 'maven-publish'
|
||||
alias catalog.plugins.envelope apply false
|
||||
alias catalog.plugins.lombok apply false
|
||||
alias catalog.plugins.multi.release.jar
|
||||
}
|
||||
|
||||
|
||||
allprojects {
|
||||
apply plugin: 'java-library'
|
||||
apply plugin: catalog.plugins.lombok.get().pluginId
|
||||
@@ -12,6 +12,10 @@ allprojects {
|
||||
group = "net.woggioni"
|
||||
version = getProperty('wson.version')
|
||||
|
||||
java {
|
||||
modularity.inferModulePath = true
|
||||
}
|
||||
|
||||
lombok {
|
||||
version = catalog.versions.lombok.get()
|
||||
}
|
||||
@@ -39,11 +43,20 @@ allprojects {
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
tasks.named(JavaPlugin.COMPILE_JAVA_TASK_NAME, JavaCompile) {
|
||||
options.release = 17
|
||||
}
|
||||
|
||||
pluginManager.withPlugin(catalog.plugins.kotlin.jvm.get().pluginId) {
|
||||
compileKotlin {
|
||||
kotlinOptions.with {
|
||||
jvmTarget = '17'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ext {
|
||||
setProperty('jpms.module.name', 'net.woggioni.wson')
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation catalog.jwo
|
||||
|
@@ -31,7 +31,15 @@ dependencyResolutionManagement {
|
||||
|
||||
rootProject.name = 'wson'
|
||||
|
||||
def includeDirs = ['antlr', 'benchmark', 'test-utils', 'wson-cli', 'wson-w3c-json', 'wcfg']
|
||||
def includeDirs = [
|
||||
'antlr',
|
||||
'benchmark',
|
||||
'test-utils',
|
||||
'wson-cli',
|
||||
'wson-w3c-json',
|
||||
'wcfg',
|
||||
'wcfg-cli'
|
||||
]
|
||||
|
||||
includeDirs.each {
|
||||
include(it)
|
||||
|
@@ -1,4 +1,5 @@
|
||||
module net.woggioni.wson {
|
||||
requires static lombok;
|
||||
requires net.woggioni.jwo;
|
||||
|
||||
exports net.woggioni.wson.xface;
|
||||
@@ -7,4 +8,5 @@ module net.woggioni.wson {
|
||||
exports net.woggioni.wson.serialization;
|
||||
exports net.woggioni.wson.serialization.json;
|
||||
exports net.woggioni.wson.serialization.binary;
|
||||
exports net.woggioni.wson.traversal;
|
||||
}
|
@@ -1,10 +0,0 @@
|
||||
module net.woggioni.wson {
|
||||
requires net.woggioni.jwo;
|
||||
|
||||
exports net.woggioni.wson.xface;
|
||||
exports net.woggioni.wson.value;
|
||||
exports net.woggioni.wson.exception;
|
||||
exports net.woggioni.wson.serialization;
|
||||
exports net.woggioni.wson.serialization.json;
|
||||
exports net.woggioni.wson.serialization.binary;
|
||||
}
|
12
wcfg-cli/build.gradle
Normal file
12
wcfg-cli/build.gradle
Normal file
@@ -0,0 +1,12 @@
|
||||
plugins {
|
||||
alias(catalog.plugins.envelope)
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation catalog.picocli
|
||||
implementation project(':wcfg')
|
||||
}
|
||||
|
||||
envelopeJar {
|
||||
mainClass = 'net.woggioni.wson.wcfg.cli.Main'
|
||||
}
|
3
wcfg-cli/src/main/java/module-info.java
Normal file
3
wcfg-cli/src/main/java/module-info.java
Normal file
@@ -0,0 +1,3 @@
|
||||
module net.woggioni.wson.wcfg.cli {
|
||||
requires net.woggioni.wson.wcfg;
|
||||
}
|
@@ -0,0 +1,7 @@
|
||||
package net.woggioni.wson.wcfg.cli;
|
||||
|
||||
public class Main {
|
||||
public void main(String[] args) {
|
||||
System.out.println();
|
||||
}
|
||||
}
|
8
wcfg/src/main/java/module-info.java
Normal file
8
wcfg/src/main/java/module-info.java
Normal file
@@ -0,0 +1,8 @@
|
||||
module net.woggioni.wson.wcfg {
|
||||
requires static lombok;
|
||||
requires static org.antlr.antlr4.runtime;
|
||||
|
||||
requires net.woggioni.jwo;
|
||||
requires net.woggioni.wson;
|
||||
exports net.woggioni.wson.wcfg;
|
||||
}
|
@@ -7,6 +7,7 @@ import org.antlr.v4.runtime.CharStreams;
|
||||
import org.antlr.v4.runtime.CodePointCharStream;
|
||||
import org.antlr.v4.runtime.CommonTokenStream;
|
||||
import org.antlr.v4.runtime.tree.ParseTreeWalker;
|
||||
import org.junit.jupiter.api.Disabled;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
|
@@ -2,3 +2,5 @@ value1 := {
|
||||
"key" : "value",
|
||||
"myself" : value1
|
||||
};
|
||||
|
||||
value2 := [value1];
|
@@ -2,11 +2,6 @@ plugins {
|
||||
id 'maven-publish'
|
||||
alias catalog.plugins.envelope
|
||||
alias catalog.plugins.kotlin.jvm
|
||||
alias catalog.plugins.multi.release.jar
|
||||
}
|
||||
|
||||
ext {
|
||||
setProperty('jpms.module.name', 'net.woggioni.wson.cli')
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -21,16 +16,6 @@ envelopeJar {
|
||||
mainModule = 'net.woggioni.wson.cli'
|
||||
}
|
||||
|
||||
java {
|
||||
modularity.inferModulePath = true
|
||||
}
|
||||
|
||||
compileKotlin {
|
||||
kotlinOptions.with {
|
||||
jvmTarget = '1.8'
|
||||
}
|
||||
}
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
@@ -44,8 +29,3 @@ publishing {
|
||||
}
|
||||
}
|
||||
|
||||
tasks.register('listConfigurations') {
|
||||
configurations.each {
|
||||
println(it.name)
|
||||
}
|
||||
}
|
||||
|
@@ -1,4 +0,0 @@
|
||||
package net.woggioni.wson.cli;
|
||||
|
||||
public class Foo {
|
||||
}
|
Reference in New Issue
Block a user