Skip to content

Commit

Permalink
kotlin integration
Browse files Browse the repository at this point in the history
  • Loading branch information
nnydjesus committed Mar 28, 2020
1 parent 1993010 commit 732f559
Show file tree
Hide file tree
Showing 41 changed files with 874 additions and 853 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/gradle.yml
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
/target
/data/*
.idea/
world-of-persistence.iml
.gradle/
build/*
124 changes: 0 additions & 124 deletions .idea/uiDesigner.xml

This file was deleted.

2 changes: 0 additions & 2 deletions README.md

This file was deleted.

43 changes: 43 additions & 0 deletions build.gradle
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"
}
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
kotlin.code.style=official
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
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
Loading

0 comments on commit 732f559

Please sign in to comment.