This file contains hidden or 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
module User where | |
template User with | |
username: Party | |
following: [Party] | |
where | |
signatory username | |
observer following | |
agreement |
This file contains hidden or 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
name: Java CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: |
This file contains hidden or 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
signing { | |
val PGP_SIGNING_KEY: String? by project | |
val PGP_SIGNING_PASSWORD: String? by project | |
useInMemoryPgpKeys(PGP_SIGNING_KEY, PGP_SIGNING_PASSWORD) | |
sign(publishing.publications["mavenJava"]) | |
} |
This file contains hidden or 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
val MAVEN_UPLOAD_USER: String by project | |
val MAVEN_UPLOAD_PWD: String by project | |
publishing { | |
repositories { | |
maven { | |
name = "MavenCentral" | |
val releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2" | |
val snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots" | |
url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl) |
This file contains hidden or 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
tasks.register<Jar>("sourcesJar") { | |
archiveClassifier.set("sources") | |
from(sourceSets.main.get().allJava) | |
} | |
tasks.register<Jar>("javadocJar") { | |
archiveClassifier.set("javadoc") | |
from(tasks.javadoc.get().destinationDir) | |
} |
This file contains hidden or 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
plugins { | |
// Apply the java-library plugin to add support for Java Library | |
`java-library` | |
`maven-publish` | |
signing | |
... | |
} |
This file contains hidden or 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
#!/bin/sh | |
aws lambda create-function \ | |
--function-name ClimateMonitor \ | |
--region eu-west-3 \ | |
--zip-file fileb://build/libs/iot-home-climate-monitoring-1.0.0.BUILD-SNAPSHOT-aws.jar \ | |
--role arn:aws:iam::603595916284:role/climate-monitor-role \ | |
--handler com.thekirschners.iot.home.monitoring.Handler \ | |
--environment Variables="{DB_HOST_NAME=localhost,DB_USERNAME=postgres,DB_PWD=password}" \ | |
--runtime java8 \ |
This file contains hidden or 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
#!/bin/sh | |
aws rds create-db-instance \ | |
--db-instance-identifier HomeAutomationDB \ | |
--db-instance-class db.t2.micro \ | |
--region eu-west-3 \ | |
--engine postgres \ | |
--allocated-storage 5 \ | |
--no-publicly-accessible \ | |
--db-name homeautomation \ |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<databaseChangeLog | |
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" | |
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd | |
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd"> | |
<changeSet id="2" author="ek"> | |
<createTable tableName="climate_reading"> |
This file contains hidden or 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
liquibase.change-log=classpath:/db/liquibase-changelog.xml | |
liquibase.enabled=true |