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
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
# Target Build files
target/
bin/
build/

# Gradle files
.gradle/
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"java.configuration.updateBuildConfiguration": "automatic"
}
41 changes: 23 additions & 18 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,32 +1,37 @@
apply plugin: 'java'
plugins {
id 'application'
id 'java'
id 'jacoco'
}

group = 'net.pterodactylus'
version = '0.14'

repositories {
maven { url "http://maven.pterodactylus.net/" }
maven { url "http://repo.maven.apache.org/maven2" }
mavenCentral()
maven { url "https://maven.pterodactylus.net/" }
}

dependencies {
compile group: 'net.pterodactylus', name: 'utils', version: '0.13'

testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.hamcrest', name: 'hamcrest-library', version: '1.3'
testCompile group: 'org.mockito', name: 'mockito-core', version: '1.10.19'
implementation('net.pterodactylus:utils:0.13')
testImplementation('junit:junit:4.12')
testImplementation('org.hamcrest:hamcrest-library:1.3')
testImplementation('org.mockito:mockito-core:5.21.0')
}

sourceCompatibility = 1.8
targetCompatibility = 1.8

apply plugin: 'application'
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

mainClassName = 'de.todesbaum.jsite.main.Main'
application {
mainClass = 'de.todesbaum.jsite.main.Main'
}

task fatJar(type: Jar) {
archiveName = "${project.name}-${project.version}-jar-with-dependencies.jar"
archiveBaseName = "${project.name}-fat"
from {
configurations.runtime.collect {
configurations.runtimeClasspath.collect {
it.isDirectory() ? it : zipTree(it)
}
}
Expand All @@ -36,11 +41,11 @@ task fatJar(type: Jar) {
with jar
}

apply plugin: 'jacoco'

jacoco {
toolVersion = '0.7.7.201606060606'
toolVersion = '0.8.8'
}

jacocoTestReport.dependsOn test

compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 3 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#Thu Nov 03 20:03:47 CET 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.1-bin.zip
Loading