Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buildscript {
- repositories {
- jcenter()
- }
- dependencies {
- //Check for the latest version here: http://plugins.gradle.org/plugin/com.jfrog.artifactory
- classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4+"
- }
- }
- plugins {
- id 'com.github.johnrengelman.shadow' version '2.0.2'
- }
- allprojects {
- apply plugin: 'maven'
- apply plugin: "com.jfrog.artifactory"
- group = 'net.archenai'
- String v = System.getenv("BUILD_ID")
- version = v==null?'1.2-SNAPSHOT':(v + "-SNAPSHOT")
- }
- subprojects {
- apply plugin: 'java'
- apply plugin: 'com.github.johnrengelman.shadow'
- sourceCompatibility = 1.8
- targetCompatibility = 1.8
- repositories {
- mavenLocal()
- maven { url "http://repo.maven.apache.org/maven2" }
- maven { url "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" }
- }
- shadowJar {
- configurations = [project.configurations['shadow']]
- }
- }
- artifactory {
- contextUrl = "${artifactory_contextUrl}" //The base Artifactory URL if not overridden by the publisher/resolver
- publish {
- repository {
- repoKey = 'gradle-dev-local'
- username = "${artifactory_user}"
- password = "${artifactory_password}"
- maven = true
- }
- }
- resolve {
- repository {
- repoKey = 'gradle-dev'
- username = "${artifactory_user}"
- password = "${artifactory_password}"
- maven = true
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement