generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e788bd
commit 02b1898
Showing
15 changed files
with
199 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
hermit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//go:build !release | ||
|
||
package java | ||
|
||
import ( | ||
"archive/zip" | ||
|
||
"github.com/TBD54566975/ftl/internal" | ||
) | ||
|
||
// Files is the FTL Go runtime scaffolding files. | ||
func Files() *zip.Reader { return internal.ZipRelativeToCaller("scaffolding") } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
//go:build release | ||
|
||
package java | ||
|
||
import ( | ||
"archive/zip" | ||
"bytes" | ||
_ "embed" | ||
) | ||
|
||
//go:embed scaffolding.zip | ||
var archive []byte | ||
|
||
// Files is the FTL Go runtime scaffolding files. | ||
func Files() *zip.Reader { | ||
zr, err := zip.NewReader(bytes.NewReader(archive), int64(len(archive))) | ||
if err != nil { | ||
panic(err) | ||
} | ||
return zr | ||
} |
2 changes: 2 additions & 0 deletions
2
jvm-runtime/java/scaffolding/{{ .Name | camel | lower }}/ftl.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
module = "{{ .Name }}" | ||
language = "java" |
14 changes: 14 additions & 0 deletions
14
jvm-runtime/java/scaffolding/{{ .Name | camel | lower }}/pom.xml.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>ftl.{{ .Group }}</groupId> | ||
<artifactId>{{ .Name }}</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
|
||
<parent> | ||
<groupId>xyz.block.ftl</groupId> | ||
<artifactId>ftl-build-parent-java</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
</project> |
13 changes: 13 additions & 0 deletions
13
...ava/scaffolding/{{ .Name | camel | lower }}/src/main/java/{{ .PackageDir }}/EchoVerb.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package {{ .Group }}; | ||
|
||
import xyz.block.ftl.Export; | ||
import xyz.block.ftl.Verb; | ||
|
||
public class EchoVerb { | ||
|
||
@Export | ||
@Verb | ||
public String echo(String request) { | ||
return "Hello, " + request + "!"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//go:build !release | ||
|
||
package kotlin | ||
|
||
import ( | ||
"archive/zip" | ||
|
||
"github.com/TBD54566975/ftl/internal" | ||
) | ||
|
||
// Files is the FTL Go runtime scaffolding files. | ||
func Files() *zip.Reader { return internal.ZipRelativeToCaller("scaffolding") } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
//go:build release | ||
|
||
package kotlin | ||
|
||
import ( | ||
"archive/zip" | ||
"bytes" | ||
_ "embed" | ||
) | ||
|
||
//go:embed scaffolding.zip | ||
var archive []byte | ||
|
||
// Files is the FTL Go runtime scaffolding files. | ||
func Files() *zip.Reader { | ||
zr, err := zip.NewReader(bytes.NewReader(archive), int64(len(archive))) | ||
if err != nil { | ||
panic(err) | ||
} | ||
return zr | ||
} |
2 changes: 2 additions & 0 deletions
2
jvm-runtime/kotlin/scaffolding/{{ .Name | camel | lower }}/ftl.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
module = "{{ .Name }}" | ||
language = "kotlin" |
14 changes: 14 additions & 0 deletions
14
jvm-runtime/kotlin/scaffolding/{{ .Name | camel | lower }}/pom.xml.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>ftl.{{ .Group }}</groupId> | ||
<artifactId>{{ .Name }}</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
|
||
<parent> | ||
<groupId>xyz.block.ftl</groupId> | ||
<artifactId>ftl-build-parent-kotlin</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
</project> |
9 changes: 9 additions & 0 deletions
9
...lin/scaffolding/{{ .Name | camel | lower }}/src/main/kotlin/{{ .PackageDir }}/EchoVerb.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package {{ .Group }} | ||
|
||
import xyz.block.ftl.Export | ||
import xyz.block.ftl.Verb | ||
|
||
|
||
@Export | ||
@Verb | ||
fun echo(req: String): String = "Hello, $req!" |