Skip to content

Instantly share code, notes, and snippets.

@andromedarabbit
Forked from grafjo/build.gradle
Last active September 21, 2015 12:56
Show Gist options
  • Select an option

  • Save andromedarabbit/65afb6ed8daddb4bd06d to your computer and use it in GitHub Desktop.

Select an option

Save andromedarabbit/65afb6ed8daddb4bd06d to your computer and use it in GitHub Desktop.

Revisions

  1. @grafjo grafjo created this gist Oct 31, 2014.
    77 changes: 77 additions & 0 deletions build.gradle
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,77 @@
    group = "foo"

    buildscript {
    repositories {
    mavenCentral()
    }
    dependencies {
    classpath("org.springframework.boot:spring-boot-gradle-plugin:1.1.8.RELEASE")
    }
    }

    apply plugin: "java"
    apply plugin: "maven"
    apply plugin: "spring-boot"

    sourceCompatibility = 1.8
    targetCompatibility = 1.8

    jar {
    baseName = "bar"
    version = "0.1.0-SNAPSHOT"
    }

    configurations {
    deployerJars
    }

    repositories {
    mavenCentral()
    }

    dependencies {

    compile("org.springframework.boot:spring-boot-starter-web")
    compile("org.springframework.boot:spring-boot-starter-actuator")

    testCompile("org.springframework.boot:spring-boot-starter-test")

    deployerJars("org.apache.maven.wagon:wagon-http:2.7")
    }



    uploadArchives {
    repositories {
    mavenDeployer {
    configuration = configurations.deployerJars

    repository(url: "https://nexushost/content/repositories/releases") {
    authentication(
    userName: "user",
    password: "password"
    )
    }

    snapshotRepository(url: "https://nexushost/content/repositories/snapshots") {
    authentication(
    userName: "user",
    password: "password",
    )
    }

    pom {
    groupId = project.group
    artifactId = jar.baseName
    version = jar.version
    project {
    parent {
    groupId "org.springframework.boot"
    artifactId "spring-boot-starter-parent"
    version "1.1.8.RELEASE"
    }
    }
    }
    }
    }
    }