Skip to content

Commit

Permalink
修改整个项目为moudle形式
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi Qian committed Nov 13, 2017
1 parent c301a27 commit 4fb19ce
Show file tree
Hide file tree
Showing 32 changed files with 142 additions and 696 deletions.
58 changes: 58 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
allprojects {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'

group = 'skyeye'
version = '1.2.0'

sourceCompatibility = 1.8
targetCompatibility = 1.8
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
buildDir = 'target'

ext {
mavenClouderaUrl = 'https://repository.cloudera.com/artifactory/cloudera-repos'
mavenPublicUrl = 'http://192.168.88.8:8081/nexus/content/repositories/public'
mavenReleaseUrl = 'http://192.168.88.8:8081/nexus/content/repositories/releases'
mavenSnapshotUrl = 'http://192.168.88.8:8081/nexus/content/repositories/snapshots'
}

repositories {
mavenLocal()
maven { url mavenPublicUrl }
maven { url mavenReleaseUrl }
maven { url mavenSnapshotUrl }
mavenCentral()
}
}

subprojects {

ext {
kafkaVersion = '0.10.0.1'
zookeeperVersion = '3.4.6'
curatorVersion = '2.11.0'
zkclientVersion = '0.10'
slf4jVersion = '1.7.25'
fastJsonVersion = '1.2.40'
dubboVersion = '2.8.4-skyeye-trace-1.2.0'
springBootVersion = '1.5.6.RELEASE'
springVersion = '4.3.10.RELEASE'
hbaseVersion = '1.0.0-cdh5.4.0'
httpclientVersion = '4.5.3'
jacksonVersion = '1.9.13'
logbackVersion = '1.1.11'
log4j2Version = '2.7'
log4jVersion = '1.2.17'
zullVersion = '1.3.0'
springBootVersion = '1.5.6.RELEASE'
gradlePluginVersion = '1.0.3.RELEASE'
esVersion = '2.3.3'
hadoopVersion = '2.6.0-cdh5.4.0'
}

dependencies {

}
}
113 changes: 0 additions & 113 deletions build.sh

This file was deleted.

8 changes: 8 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
include 'skyeye-base'
include 'skyeye-client:skyeye-client-core', 'skyeye-client:skyeye-client-log4j', 'skyeye-client:skyeye-client-logback', 'skyeye-client:skyeye-client-log4j2'
include 'skyeye-trace:skyeye-trace-core', 'skyeye-trace:skyeye-trace-sc'
include 'skyeye-data:skyeye-data-dubbox', 'skyeye-data:skyeye-data-hbase', 'skyeye-data:skyeye-data-http', 'skyeye-data:skyeye-data-jpa', 'skyeye-data:skyeye-data-rabbitmq'
include 'skyeye-collector:skyeye-collector-core', 'skyeye-collector:skyeye-collector-backup', 'skyeye-collector:skyeye-collector-indexer', 'skyeye-collector:skyeye-collector-metrics', 'skyeye-collector:skyeye-collector-trace'
include 'skyeye-alarm'
include 'skyeye-web'
include 'skyeye-monitor'
42 changes: 7 additions & 35 deletions skyeye-alarm/build.gradle
Original file line number Diff line number Diff line change
@@ -1,35 +1,10 @@
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'org.springframework.boot'
apply plugin: 'application'

group = 'skyeye'
applicationName = 'skyeye-alarm'
version = '1.2.0'

sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
buildDir = 'target'

repositories {
mavenLocal()
maven { url "http://192.168.88.8:8081/nexus/content/groups/public" }
maven { url "http://192.168.88.8:8081/nexus/content/repositories/releases" }
mavenCentral()
}

ext {
baseVersion = '1.2.0'
dataVersion = '1.2.0'
fastJsonVersion = '1.2.35'
}

dependencies {
compile "skyeye:skyeye-base:$baseVersion"
compile "skyeye:skyeye-data-http:$dataVersion"
compile "skyeye:skyeye-data-rabbitmq:$dataVersion"
compile project(':skyeye-base')
compile project(':skyeye-data:skyeye-data-http')
compile project(':skyeye-data:skyeye-data-rabbitmq')
compile "org.springframework.boot:spring-boot-starter"

compile "com.alibaba:fastjson:$fastJsonVersion"
Expand All @@ -48,24 +23,21 @@ configurations {
mainClassName = 'com.jthink.skyeye.alarm.launcher.Launcher'

buildscript {
ext {
springBootVersion = '1.5.6.RELEASE'
}

repositories {
mavenLocal()
maven { url "http://192.168.88.8:8081/nexus/content/groups/public" }
maven { url mavenPublicUrl }
mavenCentral()
}

dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("io.spring.gradle:dependency-management-plugin:1.0.3.RELEASE")
classpath("org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion")
classpath("io.spring.gradle:dependency-management-plugin:$gradlePluginVersion")
}
}

startScripts {
doLast {
unixScript.text = unixScript.text.replaceAll("lib/(.*)\n", "lib/\\*")
}
}
}
28 changes: 1 addition & 27 deletions skyeye-base/build.gradle
Original file line number Diff line number Diff line change
@@ -1,29 +1,3 @@
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'

group = 'skyeye'
version = '1.2.0'

sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
buildDir = 'target'

ext {
mavenPublicUrl = 'http://192.168.88.8:8081/nexus/content/repositories/public'
mavenReleaseUrl = 'http://192.168.88.8:8081/nexus/content/repositories/releases'
mavenSnapshotUrl = "http://192.168.88.8:8081/nexus/content/repositories/snapshots"
}

repositories {
mavenLocal()
maven { url mavenPublicUrl }
maven { url mavenReleaseUrl }
maven { url mavenSnapshotUrl }
mavenCentral()
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
Expand All @@ -48,4 +22,4 @@ uploadArchives {

dependencies {

}
}
2 changes: 1 addition & 1 deletion skyeye-base/settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rootProject.name = 'skyeye-base'
rootProject.name = 'skyeye-base'
46 changes: 9 additions & 37 deletions skyeye-client/build.gradle
Original file line number Diff line number Diff line change
@@ -1,37 +1,18 @@
allprojects {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'

group = 'skyeye'
version = '1.2.0'

sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
buildDir = 'target'

ext {
mavenPublicUrl = 'http://192.168.88.8:8081/nexus/content/repositories/public'
mavenReleaseUrl = 'http://192.168.88.8:8081/nexus/content/repositories/releases'
mavenSnapshotUrl = 'http://192.168.88.8:8081/nexus/content/repositories/snapshots'
}

repositories {
mavenLocal()
maven { url mavenPublicUrl }
maven { url mavenReleaseUrl }
maven { url mavenSnapshotUrl }
mavenCentral()
}

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

// task javadocJar(type: Jar, dependsOn: javadoc) {
// classifier = 'javadoc'
// from javadoc.destinationDir
// }

artifacts {
archives sourcesJar
// archives javadocJar
}

uploadArchives {
Expand All @@ -49,23 +30,14 @@ allprojects {
}

subprojects {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'

ext {
kafkaVersion = '0.10.0.1'
zookeeperVersion = '3.4.6'
zkclientVersion = '0.10'
baseVersion = '1.2.0'
traceVersion = '1.2.0'
}

[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
}

dependencies {
compile "skyeye:skyeye-base:$baseVersion"
compile "skyeye:skyeye-trace-core:$traceVersion"
compile project(':skyeye-base')
compile project(':skyeye-trace:skyeye-trace-core')
compile "org.apache.kafka:kafka-clients:$kafkaVersion"
compile "org.apache.zookeeper:zookeeper:$zookeeperVersion"
compile "com.101tec:zkclient:$zkclientVersion"
Expand Down
23 changes: 0 additions & 23 deletions skyeye-client/skyeye-client-core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,26 +1,3 @@
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'

sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
buildDir = 'target'

ext {
}

repositories {
mavenLocal()
maven { url mavenPublicUrl }
maven { url mavenReleaseUrl }
maven { url mavenSnapshotUrl }
mavenCentral()
}

dependencies {
}

configurations {
compile.exclude group: "log4j", module: "log4j"
compile.exclude group: "org.slf4j", module: "slf4j-log4j12"
Expand Down
Loading

0 comments on commit 4fb19ce

Please sign in to comment.