DeepJ/build.gradle
2022-11-08 18:37:33 -05:00

43 lines
1.0 KiB
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.2.1'
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
implementation group: 'org.json', name: 'json', version: '20210307'
implementation 'com.github.jitpack:gradle-simple:master-SNAPSHOT'
}
publishing {
publications{
publish(MavenPublication) {
artifact("target/DeepJ-$version" + "-all.jar") {
extension 'jar'
}
}
}
repositories {
maven {
name 'gitea'
url "https://git.nevets.tech/api/packages/5gi/maven"
credentials {
username System.getenv('5giUserGit')
password System.getenv('5giPassGit')
}
}
}
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}