Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
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
60 changes: 6 additions & 54 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,33 +1,5 @@
# Created by https://www.gitignore.io/api/java,gradle

# General
*.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Java ###
*.class

Expand All @@ -45,33 +17,13 @@ Temporary Items
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*


### Gradle ###
.gradle
/build/

# Ignore Gradle GUI config
gradle-app.setting

# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar

# Cache of project
.gradletasknamecache

# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
# gradle/wrapper/gradle-wrapper.properties

# End of https://www.gitignore.io/api/java,gradle

# Java and Gradle #
############
build/
.gradle/
out/
out
.gradle
gradle
gradlew.bat
gradlew
settings.gradle

#IntelliJ
.idea
.idea/
*.iml
!gradle-wrapper.jar
46 changes: 46 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
pipeline {
agent any

tools {
gradle 'Gradle-6'
}


environment {
VERSION_NUMBER = '1.0'
}

stages {
stage('Clone repository') {
steps {
echo 'Cloning repository'
git 'https://github.com/brianmarete/java-todo.git'
}
}
stage('Build ') {
steps {
echo "Build number ${BUILD_NUMBER}"
// withGradle() {
sh 'gradle build'
// }
}
}
stage('Test') {
steps {
echo 'Testing the project'
// withGradle() {
sh 'gradl test'
// }
}
}
}
post {
success {
slackSend color: "good", message: "Build #${BUILD_NUMBER} ran successfully"
}

failure {
slackSend color: "danger", message: "Build #${BUILD_NUMBER} failed"
}
}
}
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: ./build/install/todo/bin/todo
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Java-Week3-To Do List
# Java-Week3-ToDo-List

Author: Brian Marete

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

Each branch contains a new "Step" of code. Please fork, then clone.
Each branch contains a new "Step" of code. Please fork, then clone.

Date: 20 June 2024
8 changes: 7 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ plugins {
group 'to-do.list'
version '1.0-SNAPSHOT'

applicationName = "todo"
mainClassName = 'App'

sourceCompatibility = 1.8
Expand All @@ -22,4 +23,9 @@ dependencies {
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'])
}

Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
185 changes: 185 additions & 0 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading