Skip to content

Commit

Permalink
updates to build.gradle to support latest APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
awatson1978 committed Jul 23, 2023
1 parent d1f9890 commit b401648
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 49 deletions.
76 changes: 29 additions & 47 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,36 @@ buildscript {
classpath "gradle.plugin.com.github.johnrengelman:shadow:7.1.2"
}
}
apply plugin: "com.github.johnrengelman.shadow"

// Apply the java plugin to add support for Java
apply plugin: 'java'
buildscript {
repositories {
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
}
dependencies {
// commons-io used in getting the version id below
classpath group: 'commons-io', name: 'commons-io', version: '2.5'
// note that commons-io is already a dependency
// of commons-csv in the primary dependencies above
}
}

sourceCompatibility = '11'
plugins {
id 'java'
id 'application'
id 'eclipse'
id 'checkstyle'
id 'jacoco'
id 'maven-publish'
id 'signing'
id 'com.github.johnrengelman.shadow' version '7.1.2'
}

apply plugin: 'application'
apply plugin: 'eclipse'
apply plugin: 'checkstyle'
apply plugin: 'jacoco'
apply plugin: 'maven-publish'
apply plugin: 'signing'
java {
withJavadocJar()
withSourcesJar()
}

// In this section you declare where to find the dependencies of your project
repositories {
Expand Down Expand Up @@ -147,20 +164,7 @@ test {
}
}

buildscript {
repositories {
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
}
dependencies {
// commons-io used in getting the version id below
classpath group: 'commons-io', name: 'commons-io', version: '2.5'
// note that commons-io is already a dependency
// of commons-csv in the primary dependencies above
}
}


jacocoTestReport {
reports {
Expand Down Expand Up @@ -324,22 +328,6 @@ run {
}
}

task sourceJar(type: Jar) {
classifier "sources"
from sourceSets.main.allJava
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier "javadoc"
from javadoc.destinationDir
}

artifacts {
archives jar
archives sourceJar
archives javadocJar
}

def mavenGroup = 'org.mitre.synthea'
def mavenVersion = '3.2.1-SNAPSHOT'

Expand All @@ -350,12 +338,6 @@ publishing {
version mavenVersion
from components.java

artifact(sourceJar) {
classifier = 'sources'
}
artifact(javadocJar) {
classifier = 'javadoc'
}
pom {
name = 'Synthea'
description = 'Synthetic Patient Population Simulator'
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/synthea.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ exporter.fhir.us_core_version = 5.0.1
exporter.fhir.transaction_bundle = true
# using bulk_data=true will ignore exporter.pretty_print
exporter.fhir.bulk_data = false
exporter.fhir.personal_data = true
exporter.fhir.personal_data = false
# included_ and excluded_resources list out the resource types to include/exclude in the csv exporters.
# only one of these may be set at a time, if both are set then both will be ignored.
# if neither is set, then all resource types will be included.
Expand All @@ -41,7 +41,7 @@ exporter.json.export = false
exporter.json.include_module_history = false
exporter.ndjson.export = true
exporter.csv.export = false
exporter.ndjson.export = true
exporter.ndjson.export = false
# if exporter.csv.append_mode = true, then each run will add new data to any existing CSVs. if false, each run will clear out the files and start fresh
exporter.csv.append_mode = false
# if exporter.csv.folder_per_run = true, then each run will have CSVs placed into a unique subfolder. if false, each run will only use the top-level csv folder
Expand Down

0 comments on commit b401648

Please sign in to comment.