Skip to content

Commit

Permalink
Punto de partida del proyecto
Browse files Browse the repository at this point in the history
  • Loading branch information
Isabel-Roman committed Feb 3, 2022
1 parent 6137b5e commit 3591b2d
Show file tree
Hide file tree
Showing 11 changed files with 561 additions and 9 deletions.
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#
# https://help.github.com/articles/dealing-with-line-endings/
#
# These are explicitly windows files and should use crlf
*.bat text eol=crlf

32 changes: 24 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,39 @@
# Ignore Gradle project-specific cache directory
.gradle
#Ignoro los directorios que crea el IDE en el espacio de trabajo, que no se suba a git
.settings
.metadata
.classpath
.project
.gitattributes

# Ignore Gradle build output directory
build

# Ignora la carpeta de compilados
bin

# Ignorar el fichero de propiedades de gradle, porque tienen datos personales
gradle.properties


# Compiled class file
*.class

# Log file
*.log

# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
#excluso el gradle wrapper de esta regla, sí quiero controlarlo
!gradle/wrapper/gradle-wrapper.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*



13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
# Audit4Improve-API
Audit4Improve-API

Código base usado como ejemplo en la asignatura Factorías de Software, de 1º del MUIT de la Universidad de Sevilla

Funcionalidad
Librería con capacidades que den soporte al desarrollo de aplicaciones para la mejora continua del proceso software

Características
Usa gradle para controlar la construcción y dependencias, incluye gradle wrapper
Usa el sistema de trazado de java
Usa Jupiter y Mockito para pruebas
Usa la librería github api (https://mvnrepository.com/artifact/org.kohsuke/github-api/1.301) para interaccionar con github

99 changes: 99 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java library project to get you started.
* For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle
* User Manual available at https://docs.gradle.org/7.3.3/userguide/building_java_projects.html
* This project uses @Incubating APIs which are subject to change.
*/

plugins {
// Apply the java-library plugin for API and implementation separation.
id 'java-library'

//Añado el plugin para eclipse
id 'eclipse'
//para poder publicar paquetes en github
id 'maven-publish'
}
version = '0.0'
tasks.withType(JavaCompile) {
//Añadir la opción Xlint
options.deprecation = true
options.encoding = 'ISO-8859-1'
}
tasks.withType(Javadoc){

description = "Genera la documentación"
//indicar que la codificación es ISO
options.encoding = 'ISO-8859-1'
options.charSet = 'ISO-8859-1'
options.author = true
options.version = true
options.use = true
options.memberLevel = JavadocMemberLevel.PROTECTED
options.footer = "MIT-FS: Curso 2021/22"
title = "Supervisor"
}

repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}

dependencies {
// This dependency is exported to consumers, that is to say found on their compile classpath.
api 'org.apache.commons:commons-math3:3.6.1'
//Añado la dependencia de la librería github que vamos a usar

// https://mvnrepository.com/artifact/org.kohsuke/github-api
implementation group: 'org.kohsuke', name: 'github-api', version: '1.301'
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
implementation 'com.google.guava:guava:30.1.1-jre'
//Añado para usar mockito
testImplementation 'org.mockito:mockito-core:4.3.1'
// https://mvnrepository.com/artifact/org.mockito/mockito-junit-jupiter
testImplementation 'org.mockito:mockito-junit-jupiter:4.3.1'

}

testing {
suites {
// Configure the built-in test suite
test {

// Use JUnit Jupiter test framework
useJUnitJupiter('5.7.2')

}
}
}
//Para publicar paquetes en github
//group = 'A4I'
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/mit-fs/audit4improve-api")
credentials {
//las propiedades gpr.user y gpr.key están configuradas en gradle.properties en el raiz del proyecto, y se añade a .gitignore para que no se suban
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
//Del tutorial https://docs.gradle.org/current/userguide/publishing_maven.html#publishing_maven

groupId = 'mitfs.samples'
artifactId = 'a4i'
version = '0.0'

from components.java
}

}
}


Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 3591b2d

Please sign in to comment.