build.gradle
39 lines
| 792 B
| text/x-groovy
|
GroovyLexer
/ common / build.gradle
|
|
r0 | plugins { | |
| id "java-library" | |||
| id "ivy-publish" | |||
| } | |||
| java { | |||
| withJavadocJar() | |||
| withSourcesJar() | |||
|
|
r1 | toolchain { | |
| languageVersion = JavaLanguageVersion.of(17) | |||
| } | |||
|
|
r0 | } | |
| dependencies { | |||
|
|
r5 | compileOnly "org.eclipse.jdt:org.eclipse.jdt.annotation:2.3.0" | |
|
|
r0 | api gradleApi() | |
| } | |||
| task printVersion{ | |||
| doLast { | |||
|
|
r1 | println "project: $project.group:$project.name:$project.version" | |
|
|
r0 | println "jar: ${->jar.archiveFileName.get()}" | |
| } | |||
| } | |||
| publishing { | |||
| repositories { | |||
| ivy { | |||
| url "${System.properties["user.home"]}/ivy-repo" | |||
| } | |||
| } | |||
|
|
r1 | publications { | |
| ivy(IvyPublication) { | |||
| from components.java | |||
| descriptor.description { | |||
| text = providers.provider({ description }) | |||
| } | |||
| } | |||
| } | |||
|
|
r0 | } |
