-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from noumenalio/develop
Enhancements.
- Loading branch information
Showing
16 changed files
with
582 additions
and
400 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
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 |
---|---|---|
|
@@ -28,3 +28,4 @@ bin/ | |
.settings | ||
.classpath | ||
.factorypath | ||
.vscode/ |
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,20 @@ | ||
plugins { | ||
id 'java' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation 'org.apache.logging.log4j:log4j-api:2.18.0' | ||
implementation 'org.apache.logging.log4j:log4j-core:2.18.0' | ||
} | ||
|
||
java { | ||
toolchain { | ||
languageVersion = JavaLanguageVersion.of(11) | ||
} | ||
} | ||
|
||
version='0.1.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
pluginManagement { | ||
repositories { | ||
maven { | ||
url "s3://nio-maven" | ||
authentication { | ||
awsIm(AwsImAuthentication) | ||
} | ||
} | ||
gradlePluginPortal() | ||
} | ||
} | ||
rootProject.name = 'internal-stage' |
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 @@ | ||
import org.apache.logging.log4j.LogManager; | ||
import org.apache.logging.log4j.Logger; | ||
|
||
public class AddNumbers { | ||
|
||
private static final Logger logger = LogManager.getLogger(); | ||
|
||
public String addNum(int num1, int num2) { | ||
try { | ||
int sum = num1 + num2; | ||
return ("Sum is: " + sum); | ||
} catch (Exception e) { | ||
logger.warn("Error: " + e.toString()); | ||
return null; | ||
} | ||
} | ||
|
||
public static void main(String[] args) { | ||
System.out.println("Hello World"); | ||
} | ||
} |
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,36 @@ | ||
plugins { | ||
id 'io.noumenal.gradle.snowflake' version '0.1.9' | ||
id 'java' | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation 'org.apache.logging.log4j:log4j-api:2.18.0' | ||
implementation 'org.apache.logging.log4j:log4j-core:2.18.0' | ||
} | ||
|
||
java { | ||
toolchain { | ||
languageVersion = JavaLanguageVersion.of(11) | ||
} | ||
} | ||
|
||
snowflake { | ||
// groupId = 'io.noumenal' | ||
// artifactId = 'test-gradle-snowflake' | ||
role = 'devops' | ||
database = 'devops' | ||
schema = 'gradle' | ||
applications { | ||
add_numbers { | ||
inputs = ["a integer", "b integer"] | ||
returns = "string" | ||
handler = "AddNumbers.addNum" | ||
} | ||
} | ||
} | ||
|
||
version='0.1.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
pluginManagement { | ||
repositories { | ||
maven { | ||
url "s3://nio-maven" | ||
authentication { | ||
awsIm(AwsImAuthentication) | ||
} | ||
} | ||
gradlePluginPortal() | ||
} | ||
} | ||
rootProject.name = 'internal-stage' |
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 @@ | ||
import org.apache.logging.log4j.LogManager; | ||
import org.apache.logging.log4j.Logger; | ||
|
||
public class AddNumbers { | ||
|
||
private static final Logger logger = LogManager.getLogger(); | ||
|
||
public String addNum(int num1, int num2) { | ||
try { | ||
int sum = num1 + num2; | ||
return ("Sum is: " + sum); | ||
} catch (Exception e) { | ||
logger.warn("Error: " + e.toString()); | ||
return null; | ||
} | ||
} | ||
|
||
public static void main(String[] args) { | ||
System.out.println("Hello World"); | ||
} | ||
} |
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,2 @@ | ||
internalStage=upload | ||
externalStage=maven_snapshot |
Oops, something went wrong.