代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/Robo4J 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
plugins {
id "org.flywaydb.flyway" version "4.2.0"
}
group 'com.robo4j'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply from: 'libraries.gradle'
allprojects {
repositories {
mavenCentral()
mavenLocal()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
sourceCompatibility = "${robo4jJavaVersion}"
}
subprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'maven'
group 'com.robo4j'
version "${robo4jVersion}"
tasks.withType(Test){
testLogging {
events "started", "passed", "skipped", "failed"
}
}
}
project("robo4j-core") {
description = "Robo4J Core"
dependencies {
testCompile "junit:junit:${junitVersion}@jar"
testCompile "org.hamcrest:hamcrest-all:${hamcrestAllVersion}@jar"
}
test {
systemProperty "java.net.preferIPv4Stack", "true"
}
sourceSets {
main {
java {
srcDirs = ['src/main/java']
}
resources {
srcDirs = ['src/main/resources']
}
}
test {
java {
srcDirs = ['src/test/java']
}
resources {
srcDirs = ['src/test/resources']
}
}
}
}
project("robo4j-db-sql") {
description = "Robo4J Database SQL"
apply plugin: "org.flywaydb.flyway"
dependencies {
compile(project(":robo4j-core"))
compile "org.flywaydb:flyway-core:${flywayVersion}"
compile "org.hibernate.javax.persistence:hibernate-jpa-2.1-api:${hibernateJpaVersion}"
compile "org.postgresql:postgresql:${postgresqlVersion}"
compile "org.hibernate:hibernate-core:${hibernateVersion}"
compile "com.h2database:h2:${h2Version}"
testCompile project(':robo4j-core').sourceSets.test.output
testCompile "junit:junit:${junitVersion}@jar"
testCompile "org.hamcrest:hamcrest-all:${hamcrestAllVersion}@jar"
}
flyway {
url = 'jdbc:h2:~/data/robo4j1h2'
user = 'sa'
}
sourceSets {
main {
java {
srcDirs = ['src/main/java']
}
resources {
srcDirs = ['src/main/resources']
}
}
test {
java {
srcDirs = ['src/test/java']
}
resources {
srcDirs = ['src/test/resources']
}
}
}
}
project("robo4j-hw-lego") {
description = "Robo4J Lego Hardware"
dependencies {
compile fileTree(dir: 'libs', include: 'ev3classes-9.1.jar')
compile(project(":robo4j-math"))
testCompile "junit:junit:${junitVersion}"
}
sourceSets {
main {
java {
srcDirs = ['src/main/java', 'src/examples/java']
}
resources {
srcDirs = ['src/main/resources', 'src/examples/resources']
}
}
test {
java {
srcDirs = ['src/test/java']
}
resources {
srcDirs = ['src/test/resources']
}
}
}
}
project("robo4j-hw-rpi") {
description = "Robo4J RaspberryPi Hardware"
//create a single Jar with all dependencies
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': baseName,
'Implementation-Version': version
}
//baseName = project.name + '-all'
baseName = 'robo4j-hw-rpi'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
dependencies {
compile "com.pi4j:pi4j-core:${pi4jVersion}"
compile(project(":robo4j-math"))
testCompile "junit:junit:${junitVersion}"
}
sourceSets {
main {
java {
srcDirs = ['src/main/java', 'src/examples/java']
}
resources {
srcDirs = ['src/main/resources', 'src/examples/resources']
}
}
test {
java {
srcDirs = ['src/test/java']
}
resources {
srcDirs = ['src/test/resources']
}
}
}
}
project("robo4j-math") {
description = "Robo4J Math"
dependencies {
testCompile "junit:junit:${junitVersion}"
}
sourceSets {
main {
java {
srcDirs = ['src/main/java']
}
resources {
srcDirs = ['src/main/resources']
}
}
test {
java {
srcDirs = ['src/test/java']
}
resources {
srcDirs = ['src/test/resources']
}
}
}
}
project("robo4j-page") {
description = "Robo4J Page"
dependencies {
testCompile "junit:junit:${junitVersion}@jar"
testCompile "org.hamcrest:hamcrest-all:${hamcrestAllVersion}@jar"
}
sourceSets {
main {
java {
srcDirs = ['src/main/java']
}
resources {
srcDirs = ['src/main/resources']
}
}
test {
java {
srcDirs = ['src/test/java']
}
resources {
srcDirs = ['src/test/resources']
}
}
}
}
project("robo4j-socket-http") {
description = "Robo4J socket http"
dependencies {
compile(project(":robo4j-core"))
testCompile "junit:junit:${junitVersion}@jar"
testCompile "org.hamcrest:hamcrest-all:${hamcrestAllVersion}@jar"
}
sourceSets {
main {
java {
srcDirs = ['src/main/java']
}
resources {
srcDirs = ['src/main/resources']
}
}
test {
java {
srcDirs = ['src/test/java']
}
resources {
srcDirs = ['src/test/resources']
}
}
}
}
project("robo4j-units-lego") {
description = "Robo4J Lego Abstractions"
//create a single Jar with all dependencies
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'robo4j-units-lego',
'Implementation-Version': version
}
baseName = 'robo4j-units-lego'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
dependencies {
compile(project(":robo4j-core"))
compile(project(":robo4j-hw-lego"))
testCompile(project(":robo4j-socket-http"))
testCompile "junit:junit:${junitVersion}"
testCompile "org.hamcrest:hamcrest-all:${hamcrestAllVersion}"
}
sourceSets {
main {
java {
srcDirs = ['src/main/java', 'src/examples/java']
}
resources {
srcDirs = ['src/main/resources', 'src/examples/resources']
}
}
test {
java {
srcDirs = ['src/test/java']
}
resources {
srcDirs = ['src/test/resources']
}
}
}
}
project("robo4j-units-rpi") {
description = "Robo4J Raspberry Pi Units"
//create a single Jar with all dependencies
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'robo4j-units-rpi',
'Implementation-Version': version
}
//baseName = project.name + '-all'
baseName = 'robo4j-units-rpi'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
dependencies {
compile(project(":robo4j-core"))
compile(project(":robo4j-hw-rpi"))
testCompile "junit:junit:${junitVersion}"
testCompile "org.hamcrest:hamcrest-all:${hamcrestAllVersion}"
}
sourceSets {
main {
java {
srcDirs = ['src/main/java', 'src/examples/java']
}
resources {
srcDirs = ['src/main/resources', 'src/examples/resources']
}
}
test {
java {
srcDirs = ['src/test/java']
}
resources {
srcDirs = ['src/test/resources']
}
}
}
}
project("robo4j-units-rpi-http") {
description = "Robo4J Codecs for rpi units"
dependencies {
compile(project(":robo4j-socket-http"))
compile(project(":robo4j-units-rpi"))
testCompile "junit:junit:${junitVersion}"
testCompile "org.hamcrest:hamcrest-all:${hamcrestAllVersion}"
}
sourceSets {
main {
java {
srcDirs = ['src/main/java']
}
}
test {
java {
srcDirs = ['src/test/java']
}
resources {
srcDirs = ['src/test/resources']
}
}
}
}
wrapper {
gradleVersion = "${roboGradleVersion}"
}
/* global settings */
configure(allprojects) { project ->
group = "com.robo4j"
compileJava.options*.compilerArgs = [
"-Xlint:unchecked", "-Xlint:rawtypes",
]
compileTestJava.options*.compilerArgs = [
"-Xlint:deprecation", "-Xlint:unchecked", "-Xlint:rawtypes",
]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。