|
4 | 4 | <artifactId>openapi-dart-generator</artifactId>
|
5 | 5 | <packaging>jar</packaging>
|
6 | 6 | <name>openapi-dart-generator</name>
|
7 |
| - <version>5.15-SNAPSHOT</version> |
| 7 | + <version>6.1-SNAPSHOT</version> |
8 | 8 |
|
9 | 9 | <description>
|
10 | 10 | dart2 generator from openapi 3.x spec files. Changing to openapitools dependencies.
|
|
34 | 34 | </scm>
|
35 | 35 |
|
36 | 36 | <properties>
|
37 |
| - <openapi-codegen-version>5.2.1</openapi-codegen-version> |
38 |
| - <maven.compiler.target>1.8</maven.compiler.target> |
39 |
| - <maven.compiler.source>1.8</maven.compiler.source> |
| 37 | + <openapi-codegen-version>6.0.1</openapi-codegen-version> |
| 38 | + <maven.compiler.target>1.11</maven.compiler.target> |
| 39 | + <maven.compiler.source>1.11</maven.compiler.source> |
40 | 40 | </properties>
|
41 | 41 |
|
42 | 42 | <prerequisites>
|
|
63 | 63 | <scope>provided</scope>
|
64 | 64 | </dependency>
|
65 | 65 |
|
| 66 | + <!-- because we are using kotlin now, lets use their annotations --> |
| 67 | + <dependency> |
| 68 | + <groupId>org.jetbrains</groupId> |
| 69 | + <artifactId>annotations</artifactId> |
| 70 | + <version>23.0.0</version> |
| 71 | + </dependency> |
| 72 | + |
| 73 | + <dependency> |
| 74 | + <groupId>org.jetbrains.kotlin</groupId> |
| 75 | + <artifactId>kotlin-stdlib-jdk8</artifactId> |
| 76 | + <version>[1.7.10]</version> |
| 77 | + </dependency> |
| 78 | + |
| 79 | + <dependency> |
| 80 | + <groupId>org.jetbrains.kotlin</groupId> |
| 81 | + <artifactId>kotlin-reflect</artifactId> |
| 82 | + <version>[1.7.10]</version> |
| 83 | + </dependency> |
| 84 | + |
66 | 85 | <dependency>
|
67 | 86 | <groupId>junit</groupId>
|
68 | 87 | <artifactId>junit</artifactId>
|
|
73 | 92 |
|
74 | 93 | <build>
|
75 | 94 | <plugins>
|
76 |
| - <plugin> |
77 |
| - <groupId>io.repaint.maven</groupId> |
78 |
| - <artifactId>tiles-maven-plugin</artifactId> |
79 |
| - <version>2.17</version> |
80 |
| - <extensions>true</extensions> |
81 |
| - <configuration> |
82 |
| - <filtering>false</filtering> |
83 |
| - <tiles> |
84 |
| - <!-- its a good tile --> |
85 |
| - <tile>cd.connect.tiles:tile-java:[1.3, 2)</tile> |
86 |
| - </tiles> |
87 |
| - </configuration> |
88 |
| - </plugin> |
| 95 | + <plugin> |
| 96 | + <groupId>io.repaint.maven</groupId> |
| 97 | + <artifactId>tiles-maven-plugin</artifactId> |
| 98 | + <version>2.23</version> |
| 99 | + <extensions>true</extensions> |
| 100 | + <configuration> |
| 101 | + <filtering>false</filtering> |
| 102 | + <tiles> |
| 103 | + <tile>cd.connect.tiles:tile-release:[1.2, 2)</tile> |
| 104 | + </tiles> |
| 105 | + </configuration> |
| 106 | + </plugin> |
| 107 | + <plugin> |
| 108 | + <!-- if including source jars, use the no-fork goals |
| 109 | + otherwise both the Groovy sources and Java stub sources |
| 110 | + will get included in your jar --> |
| 111 | + <groupId>org.apache.maven.plugins</groupId> |
| 112 | + <artifactId>maven-source-plugin</artifactId> |
| 113 | + <!-- source plugin \> = 2.1 is required to use the no-fork goals --> |
| 114 | + <version>3.0.0</version> |
| 115 | + <executions> |
| 116 | + <execution> |
| 117 | + <id>attach-sources</id> |
| 118 | + <goals> |
| 119 | + <goal>jar-no-fork</goal> |
| 120 | + </goals> |
| 121 | + </execution> |
| 122 | + </executions> |
| 123 | + </plugin> |
| 124 | + <plugin> |
| 125 | + <groupId>org.jetbrains.kotlin</groupId> |
| 126 | + <artifactId>kotlin-maven-plugin</artifactId> |
| 127 | + <version>1.7.10</version> |
| 128 | + <executions> |
| 129 | + <execution> |
| 130 | + <id>compile</id> |
| 131 | + <goals> |
| 132 | + <goal>compile</goal> |
| 133 | + </goals> |
| 134 | + <configuration> |
| 135 | + <sourceDirs> |
| 136 | + <sourceDir>${project.basedir}/src/main/kotlin</sourceDir> |
| 137 | + <sourceDir>${project.basedir}/src/main/java</sourceDir> |
| 138 | + <jvmTarget>11</jvmTarget> |
| 139 | + </sourceDirs> |
| 140 | + </configuration> |
| 141 | + </execution> |
| 142 | + <execution> |
| 143 | + <id>test-compile</id> |
| 144 | + <goals> <goal>test-compile</goal> </goals> |
| 145 | + <configuration> |
| 146 | + <sourceDirs> |
| 147 | + <sourceDir>${project.basedir}/src/test/kotlin</sourceDir> |
| 148 | + <sourceDir>${project.basedir}/src/test/java</sourceDir> |
| 149 | + <jvmTarget>11</jvmTarget> |
| 150 | + </sourceDirs> |
| 151 | + </configuration> |
| 152 | + </execution> |
| 153 | + </executions> |
| 154 | + </plugin> |
| 155 | + <plugin> |
| 156 | + <artifactId>maven-compiler-plugin</artifactId> |
| 157 | + <version>3.8.1</version> |
| 158 | + <configuration> |
| 159 | + <release>11</release> |
| 160 | + <source>11</source> |
| 161 | + <target>11</target> |
| 162 | + <executable>javac11</executable> |
| 163 | + <useIncrementalCompilation>false</useIncrementalCompilation> |
| 164 | + </configuration> |
| 165 | + <executions> |
| 166 | + <!-- Replacing default-compile as it is treated specially by maven --> |
| 167 | + <execution> |
| 168 | + <id>default-compile</id> |
| 169 | + <phase>none</phase> |
| 170 | + <configuration/> |
| 171 | + </execution> |
| 172 | + <!-- Replacing default-testCompile as it is treated specially by maven --> |
| 173 | + <execution> |
| 174 | + <id>default-testCompile</id> |
| 175 | + <phase>none</phase> |
| 176 | + <configuration/> |
| 177 | + </execution> |
| 178 | + <execution> |
| 179 | + <id>java-compile</id> |
| 180 | + <phase>compile</phase> |
| 181 | + <goals> |
| 182 | + <goal>compile</goal> |
| 183 | + </goals> |
| 184 | + <configuration /> |
| 185 | + </execution> |
| 186 | + <execution> |
| 187 | + <id>java-test-compile</id> |
| 188 | + <phase>test-compile</phase> |
| 189 | + <goals> |
| 190 | + <goal>testCompile</goal> |
| 191 | + </goals> |
| 192 | + <configuration /> |
| 193 | + </execution> |
| 194 | + </executions> |
| 195 | + </plugin> |
| 196 | + <!-- files ending in spec or test --> |
| 197 | + <plugin> |
| 198 | + <groupId>org.apache.maven.plugins</groupId> |
| 199 | + <artifactId>maven-surefire-plugin</artifactId> |
| 200 | + <version>3.0.0-M3</version> |
| 201 | + <configuration> |
| 202 | + <includes> |
| 203 | + <include>**/*Test.java</include> |
| 204 | + </includes> |
| 205 | + </configuration> |
| 206 | + </plugin> |
| 207 | + <!-- ensure we know what our licenses are --> |
| 208 | + <plugin> |
| 209 | + <groupId>org.codehaus.mojo</groupId> |
| 210 | + <artifactId>license-maven-plugin</artifactId> |
| 211 | + <version>2.0.0</version> |
| 212 | + <executions> |
| 213 | + <execution> |
| 214 | + <id>licences</id> |
| 215 | + <goals> |
| 216 | + <goal>add-third-party</goal> |
| 217 | + </goals> |
| 218 | + </execution> |
| 219 | + </executions> |
| 220 | + </plugin> |
89 | 221 | <plugin>
|
90 | 222 | <groupId>org.apache.maven.plugins</groupId>
|
91 | 223 | <artifactId>maven-invoker-plugin</artifactId>
|
|
0 commit comments