Skip to content
This repository was archived by the owner on May 18, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .rultor.yml

This file was deleted.

105 changes: 105 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
allprojects {
apply plugin: 'maven'
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'signing'

group = 'org.fix4j'
version = '1.4'
}

subprojects {
apply plugin: 'java'
sourceCompatibility = 1.7
targetCompatibility = 1.7
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}

tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}

repositories {
mavenLocal()

maven { url "http://repo.maven.apache.org/maven2" }
maven { url "http://repo.marketcetera.org/maven" }
}

dependencies {
compile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.3.0'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.3.0'
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile "org.spockframework:spock-core:1.0-groovy-2.4"
// dependencies for using Spock
testCompile "org.hamcrest:hamcrest-core:1.3" // only necessary if Hamcrest matchers are used
testRuntime "cglib:cglib-nodep:3.1" // allows mocking of classes (in addition to interfaces)
testRuntime "org.objenesis:objenesis:2.1" // allows mocking of classes without default constructor (together with CGLIB)

}

task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}

task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}

artifacts {
archives javadocJar, sourcesJar
}

signing {
sign configurations.archives
}

uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}

snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}

pom.project {
name 'Fix4j Assert'
packaging 'jar'
artifactId 'fix4j-assert'
description 'fix4j-assert is a library to assist in testing of applications using FIX protocol'
url 'http://www.fix4j.org'

scm {
connection 'scm:git:git://github.com/tools4j/groovy-tables.git'
developerConnection 'scm:git:git@github.com:tools4j/fix4j-assert.git'
url 'https://github.com/tools4j/fix4j-assert'
}

licenses {
license {
name 'GNU General Public License (GPL)'
url 'http://www.gnu.org/licenses/gpl.txt'
}
}

developers {
developer {
id 'ben'
name 'Ben Warner'
email 'bjwarner@gmail.com'
}
}
}
}
}
}
}

Binary file added dist/1.4/fix4j-assert-acceptance-1.4.jar
Binary file not shown.
Binary file added dist/1.4/fix4j-assert-all-1.4.jar
Binary file not shown.
Binary file added dist/1.4/fix4j-assert-codegen-1.4.jar
Binary file not shown.
Binary file added dist/1.4/fix4j-assert-core-1.4.jar
Binary file not shown.
Binary file added dist/1.4/fix4j-assert-fixspec-50sp2-1.4.jar
Binary file not shown.
Binary file added dist/1.4/fix4j-assert-integration-1.4.jar
Binary file not shown.
Binary file added dist/1.4/fix4j-assert-quickfix-1.4.jar
Binary file not shown.
Binary file added dist/1.4/fix4j-assert-testcommon-1.4.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions fix4j-assert-acceptance/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

description = ''
dependencies {
compile project(':fix4j-assert-core')
compile project(':fix4j-assert-all')
compile project(':fix4j-assert-testcommon')
}
39 changes: 0 additions & 39 deletions fix4j-assert-acceptance/pom.xml

This file was deleted.

15 changes: 15 additions & 0 deletions fix4j-assert-all/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

description = ''
dependencies {
compile project(':fix4j-assert-core')
compile project(':fix4j-assert-fixspec-50sp2')
compile project(':fix4j-assert-quickfix')
testCompile(group: 'junit', name: 'junit', version:'4.12') {
exclude(module: 'hamcrest-core')
}
testCompile group: 'org.hamcrest', name: 'hamcrest-core', version:'1.3'
testCompile group: 'org.hamcrest', name: 'hamcrest-library', version:'1.3'
testCompile(group: 'org.mockito', name: 'mockito-core', version:'2.0.31-beta') {
exclude(module: 'hamcrest-core')
}
}
30 changes: 0 additions & 30 deletions fix4j-assert-all/pom.xml

This file was deleted.

5 changes: 5 additions & 0 deletions fix4j-assert-codegen/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

description = ''
dependencies {
compile group: 'org.codehaus.groovy', name: 'groovy-all', version:'2.3.8'
}
20 changes: 0 additions & 20 deletions fix4j-assert-codegen/pom.xml

This file was deleted.

5 changes: 5 additions & 0 deletions fix4j-assert-core/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

description = ''
dependencies {
testCompile project(':fix4j-assert-testcommon')
}
30 changes: 0 additions & 30 deletions fix4j-assert-core/pom.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import org.fix4j.test.expression.FlexibleMessageExpressionParser;
import org.fix4j.test.fixmodel.Field;
import org.fix4j.test.fixmodel.FixMessage;
import org.fix4j.test.fixspec.FieldType;
import org.fix4j.test.fixspec.FixSpecification;
import org.fix4j.test.matching.matchers.FixMessageMatcher;
import org.fix4j.test.util.Consts;
Expand Down Expand Up @@ -36,7 +37,12 @@ public MessageFlags getMessageFlags(final FixMessage fixMessage){
if(refTagId != null){
try {
int refTagIdInt = Integer.valueOf(refTagId.getValue());
refTagName = fixSpecification.getFieldTypeByTag(refTagIdInt).getName();
final FieldType fieldType = fixSpecification.getFieldTypeByTag(refTagIdInt);
if(fieldType != null) {
refTagName = fieldType.getName();
} else {
refTagName = null;
}
} catch(NumberFormatException e){
refTagName = null;
}
Expand Down
33 changes: 33 additions & 0 deletions fix4j-assert-examples/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apply plugin: 'java'
apply plugin: 'maven'

/**
NOTE!: this gradle module does NOT have a parent.

It is designed to be run after a maven release to central has been done as a way to test the release.

When running the tests, the fix4j artifacts should be downloaded from the central repo.
**/

group = 'org.fix4j'
version = '1.0-SNAPSHOT'

description = 'Module to test a released version of fix4j-assert'

sourceCompatibility = 1.5
targetCompatibility = 1.5
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}



repositories {

maven { url "http://repo.maven.apache.org/maven2" }
}
dependencies {
compile group: 'org.fix4j', name: 'fix4j-assert-core', version:'1.4'
testCompile group: 'org.fix4j', name: 'fix4j-assert-all', version:'1.4'
testCompile group: 'org.fix4j', name: 'fix4j-assert-testcommon', version:'1.4'
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Tue Jan 24 06:29:50 GMT 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-bin.zip
Loading