-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
1,103 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
artifacts { | ||
archives jar | ||
archives sourcesJar | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//apply plugin: 'checkstyle' | ||
// | ||
//checkstyle { | ||
// toolVersion = '8.16' | ||
// configFile = rootProject.file("config/checkstyle/checkstyle.xml") | ||
// configProperties = [suppressions_file:rootDir.absolutePath + "/config/checkstyle/suppressions.xml"] | ||
// showViolations = false | ||
//} | ||
// | ||
//project.afterEvaluate { project -> | ||
// project.tasks.withType(Checkstyle) { | ||
// reports { | ||
// html.stylesheet resources.text.fromFile(rootProject.file("config/checkstyle/checkstyle-noframes-severity-sorted.xsl")) | ||
// } | ||
// } | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
apply plugin: 'java' | ||
|
||
sourceCompatibility = '1.8' | ||
archivesBaseName = name.toLowerCase() | ||
|
||
repositories { | ||
jcenter() | ||
} | ||
|
||
dependencies { | ||
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.21' | ||
compileOnly group: 'org.slf4j', name: 'slf4j-api', version: '1.7.21', classifier: 'javadoc' | ||
|
||
compileOnly group: 'javax.inject', name: 'javax.inject', version: '1' | ||
|
||
compileOnly group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.1' | ||
testCompileOnly group: 'com.google.code.findbugs', name: 'jsr305', version: '3.0.1' | ||
|
||
// For JUnit 4.x tests | ||
testCompileOnly group: 'junit', name: 'junit', version: '4.12' | ||
testRuntimeOnly group: 'org.junit.vintage', name: 'junit-vintage-engine', version: '5.3.2' | ||
// For JUnit 5 tests | ||
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.3.2' | ||
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: '5.3.2' | ||
testCompileOnly group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.3.2', classifier: 'javadoc' | ||
testCompileOnly group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: '5.3.2', classifier: 'javadoc' | ||
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.3.2' | ||
|
||
testCompile group: 'org.hamcrest', name: 'hamcrest-core', version: '1.3' | ||
testCompileOnly group: 'org.hamcrest', name: 'hamcrest-core', version: '1.3', classifier: 'sources' | ||
testCompile group: 'org.hamcrest', name: 'hamcrest-library', version: '1.3' | ||
testCompileOnly group: 'org.hamcrest', name: 'hamcrest-library', version: '1.3', classifier: 'sources' | ||
testCompile group: 'org.mockito', name: 'mockito-core', version: '2.8.47' | ||
testCompileOnly group: 'org.mockito', name: 'mockito-core', version: '2.8.47', classifier: 'sources' | ||
|
||
testRuntime group: 'org.slf4j', name: 'slf4j-jdk14', version: '1.7.21' | ||
} | ||
|
||
compileJava { | ||
options.compilerArgs << "-Xlint:all" | ||
options.compilerArgs << "-Xlint:-serial" | ||
} | ||
|
||
compileTestJava { | ||
options.compilerArgs << "-Xlint:all" | ||
options.compilerArgs << "-Xlint:-serial" | ||
} | ||
|
||
task sourcesJar(type: Jar, dependsOn: classes, description: 'Creates a jar from the source files.') { | ||
classifier = 'sources' | ||
from sourceSets.main.allSource | ||
} | ||
|
||
test { | ||
ignoreFailures = true | ||
systemProperties.put("java.awt.headless", "true") | ||
} | ||
|
||
ext { | ||
// Attributes for the AsciiDoc documentation to include code from source files | ||
javaSrcDir = sourceSets.main.java.srcDirs[0] | ||
javaClassesDir = sourceSets.main.output.classesDirs | ||
testSrcDir = sourceSets.test.java.srcDirs[0] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apply plugin: 'maven' | ||
|
||
configure(install.repositories.mavenInstaller) { | ||
pom.project { | ||
groupId = project.group | ||
artifactId = project.name.toLowerCase() | ||
version = project.version | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
...TCS-API-Base/src/main/java/org/opentcs/components/plantoverview/OrderTypeSuggestions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* Copyright (c) The openTCS Authors. | ||
* | ||
* This program is free software and subject to the MIT license. (For details, | ||
* see the licensing information (LICENSE.txt) you should have received with | ||
* this copy of the software.) | ||
*/ | ||
package org.opentcs.components.plantoverview; | ||
|
||
import java.util.Set; | ||
|
||
/** | ||
* Implementations of this class provide suggestions for transport order types. | ||
* | ||
* @author Martin Grzenia (Fraunhofer IML) | ||
*/ | ||
public interface OrderTypeSuggestions { | ||
|
||
/** | ||
* Returns a set of types that can be assigned to a transport order. | ||
* | ||
* @return A set of types that can be assigned to a transport order. | ||
*/ | ||
Set<String> getTypeSuggestions(); | ||
} |
20 changes: 20 additions & 0 deletions
20
...cfg4j/src/main/java/org/opentcs/configuration/cfg4j/SupplementaryConfigurationSource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/** | ||
* Copyright (c) The openTCS Authors. | ||
* | ||
* This program is free software and subject to the MIT license. (For details, | ||
* see the licensing information (LICENSE.txt) you should have received with | ||
* this copy of the software.) | ||
*/ | ||
package org.opentcs.configuration.cfg4j; | ||
|
||
import org.cfg4j.source.ConfigurationSource; | ||
|
||
/** | ||
* | ||
* @author Martin Grzenia (Fraunhofer IML) | ||
* @author Stefan Walter (Fraunhofer IML) | ||
*/ | ||
public interface SupplementaryConfigurationSource | ||
extends ConfigurationSource { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.