Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 0 additions & 47 deletions example-projects/selenium/build.gradle

This file was deleted.

51 changes: 51 additions & 0 deletions example-projects/selenium/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
buildscript {
repositories {
if (project.hasProperty("staging")) {
maven(url = "https://oss.sonatype.org/content/repositories/staging/")
}
gradlePluginPortal()
mavenLocal()
mavenCentral()
}
dependencies {
val version: String by project
classpath("com.tngtech.jgiven:jgiven-gradle-plugin:$version")
}
}

plugins {
java
idea
eclipse
}

apply(plugin = "com.tngtech.jgiven.gradle-plugin")

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

repositories {
mavenLocal()
mavenCentral()
maven(url = "https://oss.sonatype.org/content/groups/public/")
}

tasks.withType<JavaCompile> {
options.compilerArgs.add("-parameters")
options.encoding = "UTF-8"
}

dependencies {
val version: String by project
testImplementation("com.tngtech.jgiven:jgiven-junit:$version")
testImplementation("junit:junit:4.13.2")
testImplementation("org.seleniumhq.selenium:selenium-java:4.36.0")
testImplementation("io.github.bonigarcia:webdrivermanager:6.3.2")
testImplementation("org.assertj:assertj-core:3.27.6")
}

tasks.test {
finalizedBy("jgivenTestReport")
}
44 changes: 0 additions & 44 deletions example-projects/spock/build.gradle

This file was deleted.

43 changes: 43 additions & 0 deletions example-projects/spock/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
val version: String by project
classpath("com.tngtech.jgiven:jgiven-gradle-plugin:$version")
}
}

plugins {
java
groovy
}

apply(plugin = "com.tngtech.jgiven.gradle-plugin")

description = "Module for writing JGiven tests with Spock"


repositories {
mavenLocal()
mavenCentral()
}

dependencies {
val version: String by project
implementation("org.spockframework:spock-core:2.3-groovy-4.0")
implementation("org.spockframework:spock-junit4:2.3-groovy-4.0")
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.14.0")
testImplementation("com.tngtech.jgiven:jgiven-spock2:$version")
}

tasks.test {
useJUnitPlatform()
finalizedBy("jgivenTestReport")
}

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
50 changes: 0 additions & 50 deletions example-projects/spring-boot/build.gradle

This file was deleted.

51 changes: 51 additions & 0 deletions example-projects/spring-boot/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
val version: String by project
classpath("com.tngtech.jgiven:jgiven-gradle-plugin:$version")
}
}

plugins {
id("org.springframework.boot") version "3.5.6"
java
idea
eclipse
}

apply(plugin = "io.spring.dependency-management")
apply(plugin = "com.tngtech.jgiven.gradle-plugin")

tasks.wrapper {
gradleVersion = "9.1.0"
distributionType = Wrapper.DistributionType.ALL
}

val version: String by project
val assertjVersion = "3.27.6"
val junitDataproviderVersion = "1.13.1"
val hsqldbVersion = "2.7.4"

repositories {
mavenLocal()
mavenCentral()
}

dependencies {
implementation("org.springframework.boot:spring-boot-starter-web")
testImplementation("junit:junit:4.13.2")
implementation("com.h2database:h2:2.4.240")
testImplementation("com.tngtech.jgiven:jgiven-spring-junit4:$version")
testImplementation("org.assertj:assertj-core:$assertjVersion")
testImplementation("com.tngtech.java:junit-dataprovider:$junitDataproviderVersion")
testImplementation("org.hsqldb:hsqldb:$hsqldbVersion")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.boot:spring-boot-starter-data-jpa")
}

tasks.test {
finalizedBy("jgivenTestReport")
}
37 changes: 0 additions & 37 deletions example-projects/testng/build.gradle

This file was deleted.

45 changes: 45 additions & 0 deletions example-projects/testng/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
val version: String by project
classpath("com.tngtech.jgiven:jgiven-gradle-plugin:$version")
}
}

plugins {
java
}

apply(plugin = "com.tngtech.jgiven.gradle-plugin")

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

tasks.withType<JavaCompile> {
options.compilerArgs.add("-parameters")
options.encoding = "UTF-8"
}

repositories {
mavenLocal()
mavenCentral()
}

dependencies {
val version: String by project
testImplementation("com.tngtech.jgiven:jgiven-testng:$version")
testImplementation("org.testng:testng:7.11.0")
}

tasks.test {
useTestNG {
parallel = "methods"
threadCount = 10
}
finalizedBy("jgivenTestReport")
}
12 changes: 0 additions & 12 deletions jgiven-asciidoc-report/build.gradle

This file was deleted.

Loading