DeepJ/build.gradle

42 lines
999 B
Groovy

plugins {
id 'java-library'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '5.2.0'
}
apply plugin: 'maven-publish'
group 'com.the5gi.deepj'
version '1.4.3'
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
maven {
url "https://git.nevets.tech/api/packages/5gi/maven"
}
}
dependencies {
implementation group: 'org.json', name: 'json', version: '20210307'
}
publishing {
publications{
publish(MavenPublication) {
artifact("nexus/DeepJ-$version" + ".jar") {
extension 'jar'
}
}
}
repositories {
maven {
name 'gitea'
url "https://git.nevets.tech/api/packages/5gi/maven/"
credentials.username System.getenv('fivegiUserGit')
credentials.password System.getenv('fivegiPassGit')
}
}
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}