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("nexus/DeepJ-$version" + ".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' }