Skip to content

Commit c534f1c

Browse files
committed
Archivos base para nuestro proyecto
1 parent bdba81f commit c534f1c

4 files changed

Lines changed: 39 additions & 12 deletions

File tree

jobs-search-reporter/build.gradle

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
//Plugins que utiliza gradle para definir el tipo de tareas comunes
2+
plugins {
3+
id 'java'
4+
id 'application'
5+
}
6+
7+
//Paquete de nuestro programa, usado principalmente en librerias.
8+
group 'com.platzi'
9+
version '0.0.1'
10+
11+
//Version de java que es compatible con el codigo
12+
sourceCompatibility = 1.8
13+
14+
//Nuestra clase principal.
15+
application {
16+
mainClassName = "com.platzi.jobsearch.JobSearch"
17+
}
18+
19+
repositories {
20+
mavenCentral()
21+
}
22+
23+
dependencies {
24+
implementation group: 'com.beust', name: 'jcommander', version: '1.78'
25+
26+
implementation group: 'io.github.openfeign', name: 'feign-core', version: '10.6.0'
27+
implementation group: 'io.github.openfeign', name: 'feign-gson', version: '10.6.0'
28+
29+
30+
testCompile group: 'junit', name: 'junit', version: '4.12'
31+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.platzi.jobsearch;
2+
3+
public class JobSearch {
4+
public static void main(String[] args) {
5+
System.out.println("Hello fellow student");
6+
}
7+
}

modules/build.gradle

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
group 'com.platzi'
22
version '0.0.1'
33

4-
def createTask(taskName, classMain) {
5-
tasks.create(taskName, JavaExec) {
6-
group = "Execution"
7-
description = "Run the demo class"
8-
classpath = sourceSets.main.runtimeClasspath
9-
main = "com.platzi.functional.$classMain"
10-
}
11-
}
12-
13-
createTask("impuras", "Main")
14-
154
repositories {
165
mavenCentral()
176
}

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include ":modules"
1+
include ":modules", "jobs-search-reporter"

0 commit comments

Comments
 (0)