build.gradle
plugins { id 'java-library' id 'maven-publish' } ext { version = '1.0.0' pakVersion = '1.5.14' } allprojects { project.description = 'Example Commands for PAK' project.group = 'org.example' project.version = rootProject.ext.version repositories { mavenCentral() maven { name = 'pak-explorer-maven' url 'https://pak.asap.de/nexus/repository/pak-explorer-maven/' } } } subprojects { apply plugin: 'java-library' apply plugin: 'maven-publish' compileJava.options.encoding = 'UTF-8' sourceCompatibility = 11 targetCompatibility = 11 javadoc { source = sourceSets.main.allJava } } dependencies{ // Dependencies provided by PAK annotationProcessor "de.asap.pak.jlcint:jlcint-processor:${pakVersion}" implementation "de.asap.pak.jlcint:jlcint-commandapi:${pakVersion}" implementation "de.asap.pak.core:pak-common:${pakVersion}" // Extern dependencies implementation 'org.slf4j:slf4j-api:1.7.25' } compileJava { options.compilerArgs.add("-Aversion=$project.version") options.compilerArgs.add("-Agroup=$project.group") options.compilerArgs.add("-Aname=$project.name") } javadoc { source = sourceSets.main.allJava options.tags = [ 'workflowDocu:cm:Workflow Developer Documentation:' ] } task metaJar(type: Jar) { archiveClassifier = 'pakmeta' from sourceSets.main.output include 'meta/**' include 'entities/**' from sourceSets.main.java include 'icon/**' } publishing () { publications { local(MavenPublication) { artifactId = project.name from components.java } } }
Last updated 2024-12-19 10:07:56 +0100