-
Notifications
You must be signed in to change notification settings - Fork 9
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
Showing
41 changed files
with
874 additions
and
853 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# This workflow will build a Java project with Gradle | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | ||
|
||
name: Java CI with Gradle | ||
|
||
on: | ||
# Sequence of patterns matched against refs/tags | ||
push: | ||
tags: | ||
- "*" # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Make Gradle executable | ||
run: chmod +x ./gradlew | ||
- name: Run tests | ||
run: ./gradlew test | ||
env: | ||
USER: ${{ secrets.USER }} | ||
PASSWORD: ${{ secrets.PASSWORD }} | ||
DATA_BASE: ${{ secrets.DATA_BASE }} | ||
HOST: ${{ secrets.HOST }} | ||
- name: Success notification | ||
if: success() | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | ||
DISCORD_USERNAME: ${{ github.repository }} | ||
DISCORD_AVATAR: https://www.iconsdb.com/icons/preview/green/github-9-xxl.png | ||
uses: EPERS-UNQ/action-discord@master | ||
with: | ||
fields: '[{"name":"Proyecto", "value":" [{{ EVENT_PAYLOAD.repository.name }}]({{ EVENT_PAYLOAD.repository.url }}) ", "inline": true}, {"name":"Tag", "value":"[${{ steps.tagName.outputs.tagName }}](https://github.com/${{ github.repository }}/releases/tag/${{ steps.tagName.outputs.tagName }})", "inline": true}]' | ||
title: ':green_circle: Entrega existosa' | ||
color: 3258062 | ||
author: true | ||
includeCommits: true | ||
- name: Failure notification | ||
if: failure() | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | ||
DISCORD_USERNAME: ${{ github.repository }} | ||
DISCORD_AVATAR: https://www.iconsdb.com/icons/preview/red/github-10-xxl.png | ||
uses: EPERS-UNQ/action-discord@master | ||
with: | ||
fields: '[{"name":"Proyecto", "value":" [{{ EVENT_PAYLOAD.repository.name }}]({{ EVENT_PAYLOAD.repository.url }}) ", "inline": true},{"name":"Tag", "value":"[${{ steps.tagName.outputs.tagName }}](https://github.com/${{ github.repository }}/releases/tag/${{ steps.tagName.outputs.tagName }})", "inline": true}]' | ||
title: ':red_circle: Entrega fallida ' | ||
color: 9503748 | ||
author: true | ||
includeCommits: true |
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 |
---|---|---|
|
@@ -4,4 +4,5 @@ | |
/target | ||
/data/* | ||
.idea/ | ||
world-of-persistence.iml | ||
.gradle/ | ||
build/* |
This file was deleted.
Oops, something went wrong.
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,43 @@ | ||
plugins { | ||
id 'java' | ||
id 'org.jetbrains.kotlin.jvm' version '1.3.41' | ||
id "org.jetbrains.kotlin.plugin.jpa" version "1.3.71" | ||
id "org.jetbrains.kotlin.plugin.noarg" version "1.3.71" | ||
id "org.jetbrains.kotlin.plugin.allopen" version "1.3.71" | ||
|
||
} | ||
|
||
group 'ar.edu.unq.unidad3' | ||
version '1.0-SNAPSHOT' | ||
|
||
sourceCompatibility = 1.8 | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
allOpen { | ||
annotation("javax.persistence.Entity") | ||
annotation("javax.persistence.MappedSuperclass") | ||
annotation("javax.persistence.Embeddable") | ||
} | ||
|
||
|
||
dependencies { | ||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8" | ||
testCompile group: 'junit', name: 'junit', version: '4.12' | ||
testCompile group: 'io.kotlintest', name: 'kotlintest-runner-junit4', version: '3.4.2' | ||
|
||
|
||
compile group: 'org.hibernate', name: 'hibernate-core', version: '5.4.12.Final' | ||
compile group: 'mysql', name: 'mysql-connector-java', version: '8.0.19' | ||
|
||
testCompile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.30' | ||
} | ||
|
||
compileKotlin { | ||
kotlinOptions.jvmTarget = "1.8" | ||
} | ||
compileTestKotlin { | ||
kotlinOptions.jvmTarget = "1.8" | ||
} |
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 @@ | ||
kotlin.code.style=official |
Binary file not shown.
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,6 @@ | ||
#Thu Mar 26 22:30:58 ART 2020 | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-all.zip | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStorePath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME |
Oops, something went wrong.