Skip to content

Commit

Permalink
2: Integrate Health with the SPI to demonstrate how to add a new system
Browse files Browse the repository at this point in the history
  • Loading branch information
keilw committed Jul 18, 2020
1 parent b07f1fe commit 6073423
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
7 changes: 3 additions & 4 deletions domain/energy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@
<groupId>tech.units</groupId>
<artifactId>indriya</artifactId>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
<groupId>tech.uom.domain</groupId>
<artifactId>uom-energy-quantity</artifactId>
<version>${domain.version}</version>
</dependency>
</dependencies>
<build>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Units of Measurement Demos for Java
* Copyright (c) 2005-2019, Werner Keil and others.
* Copyright (c) 2005-2020, Werner Keil and others.
*
* All rights reserved.
*
Expand Down Expand Up @@ -35,15 +35,15 @@

import tech.units.indriya.format.SimpleUnitFormat;
import tech.units.indriya.quantity.Quantities;
import tech.uom.demo.energy.quantity.CarbonFootprint;
import tech.uom.demo.energy.quantity.FuelConsumption;
import tech.uom.domain.energy.quantity.CarbonFootprint;
import tech.uom.domain.energy.quantity.FuelConsumption;
import tech.uom.lib.common.function.DoubleFactorSupplier;

/**
* Carbon Footprint calculator for cars
* @author Werner
* @see <a href="https://spritrechner.biz/co2-rechner-fuer-autos.html">CO2-Rechner für Autos (DE)</a>
* @version 1.5
* @version 1.6
*/
public class CO2CarDemo {

Expand Down
4 changes: 4 additions & 0 deletions domain/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
<description>Domain Specific Demos of the Units of Measurement API</description>
<groupId>tech.uom.demo.domain</groupId>

<properties>
<domain.version>2.0</domain.version>
</properties>

<modules>
<module>health</module>
<module>energy</module>
Expand Down

0 comments on commit 6073423

Please sign in to comment.