added version and JPMS module descriptor
This commit is contained in:
38
build.gradle
38
build.gradle
@@ -1,20 +1,34 @@
|
||||
plugins {
|
||||
id 'maven-publish'
|
||||
id 'net.woggioni.plugins.multi-release-jar'
|
||||
id 'net.woggioni.gradle.lombok'
|
||||
id 'net.woggioni.gradle.multi-release-jar'
|
||||
id 'net.woggioni.gradle.lombok' apply false
|
||||
}
|
||||
|
||||
group = "net.woggioni"
|
||||
ext {
|
||||
setProperty("jpms.module.name" , "net.woggioni.wdi")
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
url = 'https://woggioni.net/mvn'
|
||||
allprojects {
|
||||
apply plugin: 'net.woggioni.gradle.lombok'
|
||||
|
||||
group = "net.woggioni"
|
||||
version = getProperty("wdi.version")
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
maven {
|
||||
url = 'https://woggioni.net/mvn'
|
||||
}
|
||||
mavenCentral()
|
||||
}
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
lombok {
|
||||
version = getProperty('lombok.version')
|
||||
lombok {
|
||||
version = getProperty('lombok.version')
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -35,10 +49,6 @@ compileTestJava {
|
||||
options.compilerArgs << '-parameters'
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
|
@@ -1,4 +1,5 @@
|
||||
gradle.version = 7.1.1
|
||||
gradle.version=7.2
|
||||
wdi.version=1.0
|
||||
jwo.version=1.0
|
||||
junit.jupiter.version=5.7.2
|
||||
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
|
||||
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
|
||||
zipStorePath=wrapper/dists
|
||||
|
@@ -9,7 +9,8 @@ pluginManagement {
|
||||
|
||||
plugins {
|
||||
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 {
|
||||
return with(beanFactoryClass.getConstructor().newInstance());
|
||||
} 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());
|
||||
}
|
||||
}
|
||||
|
@@ -1,3 +1,4 @@
|
||||
module net.woggioni.wdi {
|
||||
requires net.woggioni.jwo;
|
||||
exports net.woggioni.wdi;
|
||||
}
|
Reference in New Issue
Block a user