Skip to content

Instantly share code, notes, and snippets.

@hastebrot
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hastebrot/30aca976f3b6cb7e5380 to your computer and use it in GitHub Desktop.
Save hastebrot/30aca976f3b6cb7e5380 to your computer and use it in GitHub Desktop.
testfx-demo-project
  • Maven: ~/.m2/repository
  • Gradle: ~/.gradle/caches/modules-2/files-2.1
apply plugin: "java"
apply plugin: "idea"
apply plugin: "eclipse"
group = "org.testfx"
version = "4.0.0-SNAPSHOT"
repositories {
//mavenLocal()
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
testCompile "org.testfx:testfx-core:4.0.0-SNAPSHOT"
testCompile "junit:junit:4.11"
testCompile "org.hamcrest:hamcrest-all:1.3"
testCompile "org.mockito:mockito-all:1.9.5"
}
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
idea {
project {
jdkName "1.8"
languageLevel "1.8"
}
}
task wrapper(type: Wrapper) {
gradleVersion = "2.1"
}
task createDirs << {
sourceSets*.allSource.srcDirs*.each { it.mkdirs() }
sourceSets*.resources.srcDirs*.each { it.mkdirs() }
}
task printConfigs << {
for (configuration in configurations) {
println configuration.name
}
}
<project
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.testfx</groupId>
<artifactId>testfx-demo-project</artifactId>
<version>4.0.0-SNAPSHOT</version>
<packaging>jar</packaging>
<repositories>
<repository>
<id>maven-central-repo</id>
<url>http://repo1.maven.org/maven2</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>sonatype-snapshots-repo</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.testfx</groupId>
<artifactId>testfx-core</artifactId>
<version>4.0.0-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.9.5</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment