Commit f64cb86c authored by Paul-Christian Volkmer's avatar Paul-Christian Volkmer
Browse files

Added some more gradle configuraton to complete build setup

parent fbb7cd67
......@@ -7,4 +7,5 @@
*/target/*
target/*
*/src/main/jaxb/*
*/build/*
.gradle/*
......@@ -17,6 +17,7 @@ subprojects {
compile group: 'commons-collections', name: 'commons-collections', version: '3.2'
compile group: 'org.springframework', name: 'spring-context', version: springVersion
compile group: 'org.springframework.security', name: 'spring-security-config', version: springSecurityVersion
compile group: 'org.codehaus.jackson', name: 'jackson-mapper-lgpl', version: '1.9+'
testCompile group: 'junit', name: 'junit', version: '4.+'
testCompile group: 'org.springframework', name: 'spring-test', version: springVersion
......
jar {
manifest {
attributes 'Implementation-Title': 'Connector-Client', 'Implementation-Version': version
}
}
repositories {
mavenCentral()
}
dependencies {
compile group: 'commons-collections', name: 'commons-collections', version: '3.2'
compile group: 'commons-codec', name: 'commons-codec', version: '1.7'
compile group: 'org.springframework', name: 'spring-context', version: springVersion
compile group: 'org.springframework', name: 'spring-web', version: springVersion
compile group: 'de.thm.arsnova.connector', name: 'connector-model', version: '0.+'
testCompile group: 'junit', name: 'junit', version: '4.+'
}
test {
systemProperties 'property': 'value'
}
uploadArchives {
repositories {
flatDir {
dirs 'repos'
}
}
}
\ No newline at end of file
apply plugin: 'jaxb'
jar {
manifest {
attributes 'Implementation-Title': 'Connector-Model', 'Implementation-Version': version
}
}
dependencies {
jaxb 'com.sun.xml.bind:jaxb-xjc:2.2.4-1'
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'no.entitas.gradle.jaxb:gradle-jaxb-plugin:2.0'
}
}
sourceSets {
main {
jaxb {
srcDir 'src/main/resources/'
}
}
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<schema targetNamespace="http://arsnova.thm.de/schema/model"
<schema targetNamespace="http://arsnova.thm.de/connector/model"
elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://arsnova.thm.de/schema/model">
xmlns:tns="http://arsnova.thm.de/connector/model">
<element name="courses">
<complexType>
......
......@@ -22,7 +22,6 @@ dependencies {
compile group: 'org.springframework.security', name: 'spring-security-ldap', version: springSecurityVersion
compile group: 'mysql', name: 'mysql-connector-java', version: '5.1.+'
compile group: 'javax.servlet', name: 'javax.servlet-api', version: '3.0+'
compile group: 'org.codehaus.jackson', name: 'jackson-mapper-lgpl', version: '1.9+'
compile group: 'org.hsqldb', name: 'hsqldb', version: '2.2+'
compile group: 'cglib', name: 'cglib', version: '3.0+'
compile group: 'de.thm.arsnova.connector', name: 'connector-model', version: '0.+'
......
......@@ -22,7 +22,7 @@ public class SecurityTestConfig extends WebSecurityConfigurerAdapter {
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
auth.inMemoryAuthentication().withUser("admin")
.password("secret").authorities("ADMIN")
.and().withUser("user").password("secret");
.and().withUser("user").password("secret").authorities("USER");
}
@Bean
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment