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
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pipeline {
agent any

tools {
gradle 'Gradle-6'
gradle 'Gradle-9'
}


Expand Down
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: ./build/install/todo/bin/todo
web: java -Dserver.port=$PORT --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED -jar build/libs/*.jar
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Java-Week3-ToDo-List

Author: Brian Marete
Author: Kennedy Mukuna.

Official repo for the "To Do List" project using Java, Spark, Handlebars etc for week 3 of java unit.

Expand Down
28 changes: 23 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,28 @@ plugins {
group 'to-do.list'
version '1.0-SNAPSHOT'

applicationName = "todo"
mainClassName = 'App'
application {
mainClass = 'App'
}

jar {
manifest {
attributes 'Main-Class': 'App'
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}

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

test {
useJUnitPlatform()
}

repositories {
mavenCentral()
Expand All @@ -18,12 +36,12 @@ repositories {
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.7.0'
implementation "com.sparkjava:spark-core:2.6.0"
implementation "com.sparkjava:spark-template-handlebars:2.5.5"
implementation 'org.slf4j:slf4j-simple:1.7.21'
implementation 'org.sql2o:sql2o:1.5.4'
implementation group: 'com.h2database', name: 'h2', version: '1.4.191'
}


task stage(dependsOn: ['clean', 'installDist'])
task stage(dependsOn: ['clean', 'installDist'])
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists