Skip to content

Commit

Permalink
hawkscripts as a proper gradle kotlin project
Browse files Browse the repository at this point in the history
error logging config
  • Loading branch information
kcberg committed May 1, 2023
1 parent 31754b7 commit 9595283
Show file tree
Hide file tree
Showing 13 changed files with 176 additions and 308 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM openjdk:11.0.10-jdk-slim

RUN mkdir /javavulny /app
COPY . /javavulny/
RUN sed -i 's/localhost\:5432/db\:5432/' /javavulny/src/main/resources/application-postgresql.properties
RUN sed -i 's/localhost\:5432/db\:5432/' /javavulny/src/main/resources/application.yaml

RUN cd /javavulny \
&& ./gradlew --no-daemon build \
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ Java Spring Vulny is a simple application that combines the power and sophistica

## Building and Running in IDE/commandline
```shell script
# run the postgreql db so you can have SQLi
# run the postgresql db so you can have SQLi
docker-compose up -d db
# run the application in debug mode or run mode with the vm option to activate the profile
# -Dspring.profiles.active=postgresql

./gradlew --no-daemon bootRun --args='--spring.profiles.active=postgresql'
```

## Building and Running in Docker
Expand Down
249 changes: 0 additions & 249 deletions hawkscripts/authentication/form-auth-multi.js

This file was deleted.

46 changes: 0 additions & 46 deletions hawkscripts/authentication/form-multi-auth.kts

This file was deleted.

28 changes: 28 additions & 0 deletions hawkscripts/hawkscripts.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import org.jetbrains.kotlin.konan.file.File.Companion.userHome

plugins {
kotlin("jvm") version "1.7.20"
}

val kotlinVersion = "1.7.20"

kotlin {
sourceSets {
main {
kotlin { srcDirs("src") }
}
}
}

repositories {
mavenCentral()
}

dependencies {
compileOnly("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion")
// implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion")
// implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion")
compileOnly("org.jetbrains.kotlin:kotlin-script-runtime:$kotlinVersion")
compileOnly(fileTree("$userHome/Downloads/hawkscript-sdk-3.0.11"))
// implementation("org.jetbrains.kotlin:kotlin-scripting-jsr223:$kotlinVersion")
}
Loading

0 comments on commit 9595283

Please sign in to comment.