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
buildscript { | |
repositories { | |
mavenLocal() | |
} | |
dependencies { | |
classpath "io.quarkus:quarkus-gradle-plugin:${quarkusVersion}" | |
} | |
} | |
plugins { |
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
quarkusVersion = 0.24.0 |
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
buildscript { | |
repositories { | |
mavenLocal() | |
} | |
dependencies { | |
classpath "io.quarkus:quarkus-gradle-plugin:${quarkusVersion}" | |
} | |
} | |
plugins { |
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
pluginManagement { | |
repositories { | |
mavenLocal() | |
mavenCentral() | |
gradlePluginPortal() | |
} | |
resolutionStrategy { | |
eachPlugin { | |
if (requested.id.id == 'io.quarkus') { | |
useModule("io.quarkus:quarkus-gradle-plugin:${quarkusVersion}") |
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
package org.rockey.hello; | |
import javax.inject.Inject; | |
import javax.ws.rs.GET; | |
import javax.ws.rs.Path; | |
import javax.ws.rs.PathParam; | |
import javax.ws.rs.Produces; | |
import javax.ws.rs.core.MediaType; |
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
package org.rockey.hello; | |
import javax.enterprise.context.ApplicationScoped; | |
@ApplicationScoped | |
public class GreetingService { | |
public String greeting(String name) { | |
return "hello " + name; | |
} |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>getting-started - 1.0-SNAPSHOT</title> | |
<style> | |
h1, h2, h3, h4, h5, h6 { | |
margin-bottom: 0.5rem; | |
font-weight: 400; | |
line-height: 1.5; |
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
package main | |
import "fmt" | |
func main() { | |
var k int = 3 | |
//:= is short assignment can be used in place of var declaration with implicit type. | |
l := 3 | |
fmt.Println(k, l) |
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
package main | |
import "fmt" | |
func main() { | |
var i int | |
fmt.Println(i) | |
} |
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
package main | |
import "fmt" | |
var i, j int = 1, 2 | |
func main() { | |
var c, python, java = true, false, "no!" | |
fmt.Println(i, j, c, python, java) | |
} |
OlderNewer