zoukankan      html  css  js  c++  java
  • build.gradle & gradle.properties

    一、build.gradle

    buildscript {
    ext {
    springBootVersion = '1.5.9.RELEASE'
    }
    repositories {
    maven {
    credentials {
    username = nexusUsername
    password = nexusPassword
    }
    url repositoriesUrl
    }
    }
    dependencies {
    classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
    }
    }

    apply plugin: 'java'
    apply plugin: 'idea'
    apply plugin: 'eclipse'
    apply plugin: 'org.springframework.boot'

    group = 'com.inspur.iot'
    version = '0.0.1-SNAPSHOT'
    sourceCompatibility = 1.8

    repositories {
    maven {
    url "http://repo.iop.inspur.com:8081/nexus/content/groups/public"
    }
    }

    bootRun {
    addResources = true
    }
    configurations.all {
    exclude module: 'google-collections'
    }
    dependencies {
    compile('org.springframework.boot:spring-boot-starter')
    compile('org.springframework.boot:spring-boot-starter-web')
    compile('io.springfox:springfox-swagger2:2.6.1')
    compile('io.springfox:springfox-swagger-ui:2.6.1')
    compile('org.springframework.boot:spring-boot-starter-jdbc')
    compile('org.springframework.boot:spring-boot-starter-data-jpa')
    compile('mysql:mysql-connector-java:5.1.21')
    compile('org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.1.1')
    compile('org.springframework.boot:spring-boot-starter-data-redis')
    compile('commons-codec:commons-codec')
    testCompile('org.springframework.boot:spring-boot-starter-test')
    }

    二、gradle.properties

    sourceEncoding=UTF-8
    nexusUsername=deployment
    nexusPassword=deployment123


    nexusDeployUsername=deployment
    nexusDeployPassword=deployment123

    group=com.inspur.cloud

    version = 4.0.0-SNAPSHOT

    release=false
    jarBaseName=cloud-service-factory
    stage=dev

    repoUrl=http://repo.iop.inspur.com:8081/nexus/content/groups/iop-dev

    repositoriesUrlDev=http://repo.iop.inspur.com:8081/nexus/content/groups/iop-dev
    repositoriesUploadSnapshotsUrlDev=http://repo.iop.inspur.com:8081/nexus/content/repositories/dev-snapshot

    repositoriesUrlTest=http://repo.iop.inspur.com:8081/nexus/content/groups/iop-test
    repositoriesUploadSnapshotsUrlTest=http://repo.iop.inspur.com:8081/nexus/content/repositories/test-snapshot

    repositoriesUrl=http://repo.iop.inspur.com:8081/nexus/content/groups/public
    repositoriesUploadReleasesUrl=http://repo.iop.inspur.com:8081/nexus/content/repositories/releases
    repositoriesUploadSnapshotsUrl=http://repo.iop.inspur.com:8081/nexus/content/repositories/snapshots


    sonar.host.url=http://sonar.iop.inspur.com:9000
    sonar.jdbc.url=jdbc:mysql://sonar.iop.inspur.com:3306/sonar
    sonar.jdbc.driverClassName=com.mysql.jdbc.Driver
    sonar.jdbc.username=sonar
    sonar.jdbc.password=sonar

  • 相关阅读:
    SQL 表变量用法
    <a>标签内嵌<input type="image">在IE中链接失效问题
    jquery 关于table的子标签tbody
    调用系统存储过程清空所有表
    战争的十四行
    xx,我们一起跳西湖去
    28
    两个情境和一个梦
    从头学习compiler系列1——前言
    从头学习compiler系列2——COOL语言学习1
  • 原文地址:https://www.cnblogs.com/lexiaofei/p/8422088.html
Copyright © 2011-2022 走看看