|
22 | 22 | <parent>
|
23 | 23 | <groupId>org.javamoney.lib</groupId>
|
24 | 24 | <artifactId>javamoney-exchange</artifactId>
|
25 |
| - <version>0.2-SNAPSHOT</version> |
| 25 | + <version>1.0</version> |
26 | 26 | </parent>
|
27 | 27 | <artifactId>javamoney-exchange-rate-yahoo</artifactId>
|
28 | 28 | <packaging>jar</packaging>
|
|
40 | 40 | <outputDirectory>src/main/resources/java-money/defaults/YAHOO</outputDirectory>
|
41 | 41 | <outputFileName>finance.xml</outputFileName>
|
42 | 42 | </configuration>
|
43 |
| - <!--<executions>--> |
44 |
| - <!--<execution>--> |
45 |
| - <!--<id>get-fallback-resource</id>--> |
46 |
| - <!--<phase>process-resources</phase>--> |
47 |
| - <!--<goals>--> |
48 |
| - <!--<goal>wget</goal>--> |
49 |
| - <!--</goals>--> |
50 |
| - <!--</execution>--> |
51 |
| - <!--</executions>--> |
52 | 43 | </plugin>
|
53 |
| - </plugins> |
| 44 | + <plugin> |
| 45 | + <groupId>org.apache.maven.plugins</groupId> |
| 46 | + <artifactId>maven-compiler-plugin</artifactId> |
| 47 | + <version>3.7.0</version> |
| 48 | + <configuration> |
| 49 | + <source>9</source> |
| 50 | + <target>9</target> |
| 51 | + </configuration> |
| 52 | + <executions> |
| 53 | + <execution> |
| 54 | + <id>default-compile</id> |
| 55 | + <configuration> |
| 56 | + <!-- compile everything to ensure module-info contains right entries --> |
| 57 | + <!-- required when JAVA_HOME is JDK 8 or below --> |
| 58 | + <jdkToolchain> |
| 59 | + <version>9</version> |
| 60 | + </jdkToolchain> |
| 61 | + <release>9</release> |
| 62 | + </configuration> |
| 63 | + </execution> |
| 64 | + <execution> |
| 65 | + <id>base-compile</id> |
| 66 | + <goals> |
| 67 | + <goal>compile</goal> |
| 68 | + </goals> |
| 69 | + <!-- recompile everything for target VM except the module-info.java --> |
| 70 | + <configuration> |
| 71 | + <source>${maven.compile.sourceLevel}</source> |
| 72 | + <target>${maven.compile.targetLevel}</target> |
| 73 | + <excludes> |
| 74 | + <exclude>module-info.java</exclude> |
| 75 | + </excludes> |
| 76 | + </configuration> |
| 77 | + </execution> |
| 78 | + </executions> |
| 79 | + </plugin> |
| 80 | + </plugins> |
54 | 81 | </build>
|
55 | 82 |
|
56 | 83 | <dependencies>
|
| 84 | + <!-- API and RI --> |
57 | 85 | <dependency>
|
58 |
| - <groupId>org.testng</groupId> |
59 |
| - <artifactId>testng</artifactId> |
60 |
| - <scope>test</scope> |
| 86 | + <groupId>javax.money</groupId> |
| 87 | + <artifactId>money-api</artifactId> |
61 | 88 | </dependency>
|
62 | 89 | <dependency>
|
63 | 90 | <groupId>org.javamoney.moneta</groupId>
|
64 | 91 | <artifactId>moneta-core</artifactId>
|
65 |
| - <version>${ri.version}</version> |
66 | 92 | </dependency>
|
67 | 93 | <dependency>
|
68 | 94 | <groupId>org.javamoney.moneta</groupId>
|
69 | 95 | <artifactId>moneta-convert</artifactId>
|
70 |
| - <version>${ri.version}</version> |
71 | 96 | </dependency>
|
| 97 | + |
72 | 98 | <!-- OSGI support -->
|
73 | 99 | <dependency>
|
74 | 100 | <groupId>org.osgi</groupId>
|
75 | 101 | <artifactId>org.osgi.annotation</artifactId>
|
| 102 | + <scope>provided</scope> |
| 103 | + <version>${osgi.annotation.version}</version> |
76 | 104 | <optional>true</optional>
|
77 | 105 | </dependency>
|
78 | 106 | <dependency>
|
79 | 107 | <groupId>org.osgi</groupId>
|
80 | 108 | <artifactId>org.osgi.compendium</artifactId>
|
| 109 | + <scope>provided</scope> |
| 110 | + <version>${osgi.version}</version> |
81 | 111 | <optional>true</optional>
|
82 | 112 | </dependency>
|
83 | 113 | <dependency>
|
84 | 114 | <groupId>org.osgi</groupId>
|
85 | 115 | <artifactId>org.osgi.core</artifactId>
|
| 116 | + <version>${osgi.version}</version> |
| 117 | + <scope>provided</scope> |
86 | 118 | <optional>true</optional>
|
87 | 119 | </dependency>
|
| 120 | + <!-- Testing --> |
| 121 | + <dependency> |
| 122 | + <groupId>org.testng</groupId> |
| 123 | + <artifactId>testng</artifactId> |
| 124 | + <scope>test</scope> |
| 125 | + </dependency> |
88 | 126 | </dependencies>
|
89 | 127 | </project>
|
0 commit comments