Advertisement
Guest User

Untitled

a guest
Apr 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 1.41 KB | None | 0 0
  1. buildscript {
  2.   repositories {
  3.     jcenter()
  4.   }
  5.   dependencies {
  6.     //Check for the latest version here: http://plugins.gradle.org/plugin/com.jfrog.artifactory
  7.     classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4+"
  8.   }
  9. }
  10. plugins {
  11.   id 'com.github.johnrengelman.shadow' version '2.0.2'
  12. }
  13. allprojects {
  14.   apply plugin: 'maven'
  15.   apply plugin: "com.jfrog.artifactory"
  16.  
  17.   group = 'net.archenai'
  18.   String v = System.getenv("BUILD_ID")
  19.   version = v==null?'1.2-SNAPSHOT':(v + "-SNAPSHOT")
  20. }
  21.  
  22. subprojects {
  23.   apply plugin: 'java'
  24.   apply plugin: 'com.github.johnrengelman.shadow'
  25.   sourceCompatibility = 1.8
  26.   targetCompatibility = 1.8
  27.  
  28.  
  29.   repositories {
  30.     mavenLocal()
  31.  
  32.     maven { url "http://repo.maven.apache.org/maven2" }
  33.     maven { url "https://hub.spigotmc.org/nexus/content/repositories/snapshots/" }
  34.   }
  35.  
  36.   shadowJar {
  37.     configurations = [project.configurations['shadow']]
  38.   }
  39. }
  40. artifactory {
  41.   contextUrl = "${artifactory_contextUrl}"   //The base Artifactory URL if not overridden by the publisher/resolver
  42.   publish {
  43.     repository {
  44.       repoKey = 'gradle-dev-local'
  45.       username = "${artifactory_user}"
  46.       password = "${artifactory_password}"
  47.       maven = true
  48.  
  49.     }
  50.   }
  51.   resolve {
  52.     repository {
  53.       repoKey = 'gradle-dev'
  54.       username = "${artifactory_user}"
  55.       password = "${artifactory_password}"
  56.       maven = true
  57.  
  58.     }
  59.   }
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement