Skip to content

Commit

Permalink
Added lib usage example
Browse files Browse the repository at this point in the history
  • Loading branch information
vrudas committed Feb 11, 2024
1 parent 811a115 commit 4ff9229
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
29 changes: 29 additions & 0 deletions practice/lib-usage/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
plugins {
id("java")
}

repositories {
mavenCentral()
repositories {
maven {
name = "repsy-j4w-13-packages-repo"
url = uri("https://repsy.io/mvn/vrudas/j4w-13-packages/")

credentials {
username = System.getenv("REPO_USERNAME") ?: providers.gradleProperty("username").get()
password = System.getenv("REPO_PASSWORD") ?: providers.gradleProperty("password").get()
}
}
}
}

dependencies {
implementation("dev.vrudas.glp:open-api-generation:0.0.1-SNAPSHOT")

testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
}

tasks.test {
useJUnitPlatform()
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package dev.vrudas.glp.cipher;

import dev.vrudas.glp.cipher.generated.model.CaesarCipherDto;

public class CaesarCipher implements Cipher<CaesarCipherDto> {

@Override
public String encode(CaesarCipherDto encodeData) {
throw new UnsupportedOperationException("Not implemented yet");
}

@Override
public String decode(CaesarCipherDto decodeData) {
throw new UnsupportedOperationException("Not implemented yet");
}
}
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ include("theory:binary-jar-plugins")
include("theory:dependencies")
include("practice:tar-tasks")
include("practice:open-api-generation")
include("practice:lib-usage")

0 comments on commit 4ff9229

Please sign in to comment.