Skip to content

Commit

Permalink
Establishing modules structure
Browse files Browse the repository at this point in the history
  • Loading branch information
dima767 committed Jan 15, 2020
1 parent b9d69f7 commit 1b72b56
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 45 deletions.
41 changes: 0 additions & 41 deletions beacon/beacon-spring/build.gradle

This file was deleted.

4 changes: 4 additions & 0 deletions beacon/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
allprojects {
group = 'edu.internet2.tap.beacon'
version = '1.0.0-SNAPSHOT'
}
4 changes: 4 additions & 0 deletions beacon/beacon-core/build.gradle → beacon/core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.5.2'
}

jar {
archiveName = "beacon-core-${version}.jar"
}

test {
useJUnitPlatform()
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
package edu.internet2.tap.beacon;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertThrows;

public class DefaultBeaconPublisherTests {

@Test
public void checkCorrectInvariantsWithBeaconDataNull() {
Assertions.assertTrue(true);
//new DefaultBeaconPublisher(null);
assertThrows(IllegalArgumentException.class, () -> {
new DefaultBeaconPublisher(null);
});
}
}
29 changes: 29 additions & 0 deletions beacon/spring/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import org.springframework.boot.gradle.plugin.SpringBootPlugin

plugins {
id 'groovy'
id 'jacoco'
id 'org.springframework.boot' version '2.0.0.RELEASE' apply false
id 'io.spring.dependency-management' version '1.0.6.RELEASE'
id 'io.franzbecker.gradle-lombok' version '1.13'
}

repositories {
jcenter()
}

jar {
archiveName = "beacon-spring-${version}.jar"
}

dependencyManagement {
imports {
mavenBom SpringBootPlugin.BOM_COORDINATES
}
}

lombok {
version = "1.18.4"
//TODO: get new sha256
sha256 = ""
}
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include 'backend', 'ui', 'pac4j-module', 'beacon', 'beacon:beacon-core', 'beacon:beacon-spring'
include 'backend', 'ui', 'pac4j-module', 'beacon', 'beacon:core', 'beacon:spring'

0 comments on commit 1b72b56

Please sign in to comment.