added version and JPMS module descriptor
This commit is contained in:
30
build.gradle
30
build.gradle
@@ -1,20 +1,34 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'maven-publish'
|
id 'maven-publish'
|
||||||
id 'net.woggioni.plugins.multi-release-jar'
|
id 'net.woggioni.gradle.multi-release-jar'
|
||||||
id 'net.woggioni.gradle.lombok'
|
id 'net.woggioni.gradle.lombok' apply false
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "net.woggioni"
|
ext {
|
||||||
|
setProperty("jpms.module.name" , "net.woggioni.wdi")
|
||||||
|
}
|
||||||
|
|
||||||
repositories {
|
allprojects {
|
||||||
|
apply plugin: 'net.woggioni.gradle.lombok'
|
||||||
|
|
||||||
|
group = "net.woggioni"
|
||||||
|
version = getProperty("wdi.version")
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenLocal()
|
||||||
maven {
|
maven {
|
||||||
url = 'https://woggioni.net/mvn'
|
url = 'https://woggioni.net/mvn'
|
||||||
}
|
}
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
lombok {
|
lombok {
|
||||||
version = getProperty('lombok.version')
|
version = getProperty('lombok.version')
|
||||||
|
}
|
||||||
|
|
||||||
|
test {
|
||||||
|
useJUnitPlatform()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@@ -35,10 +49,6 @@ compileTestJava {
|
|||||||
options.compilerArgs << '-parameters'
|
options.compilerArgs << '-parameters'
|
||||||
}
|
}
|
||||||
|
|
||||||
test {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
gradle.version = 7.1.1
|
gradle.version=7.2
|
||||||
|
wdi.version=1.0
|
||||||
jwo.version=1.0
|
jwo.version=1.0
|
||||||
junit.jupiter.version=5.7.2
|
junit.jupiter.version=5.7.2
|
||||||
lombok.version=1.18.16
|
lombok.version=1.18.16
|
||||||
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
@@ -9,7 +9,8 @@ pluginManagement {
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id "net.woggioni.gradle.lombok" version "0.1"
|
id "net.woggioni.gradle.lombok" version "0.1"
|
||||||
id "net.woggioni.plugins.multi-release-jar" version "0.1"
|
id "net.woggioni.gradle.multi-release-jar" version "0.1"
|
||||||
|
id "net.woggioni.gradle.envelope" version "0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -29,7 +29,7 @@ public class BeanContainer {
|
|||||||
try {
|
try {
|
||||||
return with(beanFactoryClass.getConstructor().newInstance());
|
return with(beanFactoryClass.getConstructor().newInstance());
|
||||||
} catch (NoSuchMethodException | IllegalAccessException ex) {
|
} catch (NoSuchMethodException | IllegalAccessException ex) {
|
||||||
throw JWO.newThrowable(BeanConfigurationException.class,
|
throw JWO.newThrowable(BeanConfigurationException.class, ex,
|
||||||
"Bean factory class '%s' is required to have a public zero arguments constructor", beanFactoryClass.getName());
|
"Bean factory class '%s' is required to have a public zero arguments constructor", beanFactoryClass.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
module net.woggioni.wdi {
|
module net.woggioni.wdi {
|
||||||
|
requires net.woggioni.jwo;
|
||||||
exports net.woggioni.wdi;
|
exports net.woggioni.wdi;
|
||||||
}
|
}
|
Reference in New Issue
Block a user