sormuras.github.io

mod2mav

The idea described here module-version.properties is now available as a proof-of-concept script plugin for Gradle:

Example

apply plugin: 'java'
apply from: 'https://github.com/jodastephen/jpms-module-names/raw/master/demo/gradle/module-maven.gradle'

repositories {
    mavenCentral()
}

dependencies {
    // main
    compile mod2mav('org.apache.commons.lang3')
    compile mod2mav('org.joda.beans')
    compile mod2mav('org.objectweb.asm')
    compile mod2mav('org.slf4j')
    // test
    testCompile mod2mav('org.junit.jupiter.api')
    testRuntime mod2mav('org.junit.jupiter.engine')
    testRuntime mod2mav('org.junit.platform.console')
}