Skip to content

Commit

Permalink
'3.4.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
jknack committed Oct 28, 2024
1 parent d5c2142 commit bec5af1
Show file tree
Hide file tree
Showing 40 changed files with 2,015 additions and 1,952 deletions.
2,086 changes: 1,059 additions & 1,027 deletions index.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions migration/3.x/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -635,13 +635,13 @@ <h4 id="upgrading-from-2-x-to-3-x-kotlin"><a class="anchor" href="#upgrading-fro


<div class="switch"><div class="switch--item option-1 selected">Maven</div><div class="switch--item option-2">Gradle</div></div><div class="content option-1">
<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml" id="x583c271f94c24614">&lt;dependency&gt;
<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml" id="x8977d4e5efdd4275">&lt;dependency&gt;
&lt;groupId&gt;io.jooby&lt;/groupId&gt;
&lt;artifactId&gt;jooby-kotlin&lt;/artifactId&gt;
&lt;version&gt;3.4.2&lt;/version&gt;
&lt;/dependency&gt;</code><button class="clipboard" data-clipboard-target="#x583c271f94c24614"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
&lt;version&gt;3.4.3&lt;/version&gt;
&lt;/dependency&gt;</code><button class="clipboard" data-clipboard-target="#x8977d4e5efdd4275"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div><div class="content hidden option-2">
<pre class="highlightjs highlight"><code class="language-gradle hljs" data-lang="gradle" id="x1bde5c0ffab449e9">implementation 'io.jooby:jooby-kotlin:3.4.2'</code><button class="clipboard" data-clipboard-target="#x1bde5c0ffab449e9"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
<pre class="highlightjs highlight"><code class="language-gradle hljs" data-lang="gradle" id="xe05ae445be5b4629">implementation 'io.jooby:jooby-kotlin:3.4.3'</code><button class="clipboard" data-clipboard-target="#xe05ae445be5b4629"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div></div>

</div>
Expand Down
58 changes: 37 additions & 21 deletions modules/avaje-inject/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -588,13 +588,13 @@ <h3 id="avaje-inject"><a class="anchor" href="#avaje-inject"></a><a class="link"


<div class="switch"><div class="switch--item option-1 selected">Maven</div><div class="switch--item option-2">Gradle</div></div><div class="content option-1">
<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml" id="xb6ea3d5d72824148">&lt;dependency&gt;
<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml" id="xfd29f1492f414ba6">&lt;dependency&gt;
&lt;groupId&gt;io.jooby&lt;/groupId&gt;
&lt;artifactId&gt;jooby-avaje-inject&lt;/artifactId&gt;
&lt;version&gt;3.4.2&lt;/version&gt;
&lt;/dependency&gt;</code><button class="clipboard" data-clipboard-target="#xb6ea3d5d72824148"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
&lt;version&gt;3.4.3&lt;/version&gt;
&lt;/dependency&gt;</code><button class="clipboard" data-clipboard-target="#xfd29f1492f414ba6"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div><div class="content hidden option-2">
<pre class="highlightjs highlight"><code class="language-gradle hljs" data-lang="gradle" id="x226974607cc94bc7">implementation 'io.jooby:jooby-avaje-inject:3.4.2'</code><button class="clipboard" data-clipboard-target="#x226974607cc94bc7"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
<pre class="highlightjs highlight"><code class="language-gradle hljs" data-lang="gradle" id="x8a7caa1f21a74a54">implementation 'io.jooby:jooby-avaje-inject:3.4.3'</code><button class="clipboard" data-clipboard-target="#x8a7caa1f21a74a54"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div></div>

<div class="paragraph">
Expand All @@ -604,14 +604,16 @@ <h3 id="avaje-inject"><a class="anchor" href="#avaje-inject"></a><a class="link"


<div class="switch"><div class="switch--item option-1 selected">Maven</div><div class="switch--item option-2">Gradle</div></div><div class="content option-1">
<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml" id="x1ae06507084b47a2">&lt;build&gt;
<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml" id="x4a08ff382b284c51">&lt;build&gt;
&lt;plugins&gt;
&lt;plugin&gt;
&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
&lt;version&gt;...&lt;/version&gt;
&lt;configuration&gt;
&lt;annotationProcessorPaths&gt;
&lt;!-- if using lombok, it must be placed before the avaje-inject-generator --&gt;
&lt;!-- avaje-inject-generator must be placed before the jooby-apt --&gt;
&lt;path&gt;
&lt;groupId&gt;io.avaje&lt;/groupId&gt;
&lt;artifactId&gt;avaje-inject-generator&lt;/artifactId&gt;
Expand All @@ -621,25 +623,39 @@ <h3 id="avaje-inject"><a class="anchor" href="#avaje-inject"></a><a class="link"
&lt;/configuration&gt;
&lt;/plugin&gt;
&lt;/plugins&gt;
&lt;/build&gt;</code><button class="clipboard" data-clipboard-target="#x1ae06507084b47a2"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
&lt;/build&gt;</code><button class="clipboard" data-clipboard-target="#x4a08ff382b284c51"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div><div class="content hidden option-2">
<pre class="highlightjs highlight"><code class="language-kotlin hljs" data-lang="kotlin" id="xd7ffe3dd8984674">plugins {
<pre class="highlightjs highlight"><code class="language-kotlin hljs" data-lang="kotlin" id="x8018b32b040b4999">plugins {
id "org.jetbrains.kotlin.kapt" version "1.9.10"
}

dependencies {
kapt 'io.avaje:avaje-inject-generator:{avaje.inject.version}'
}</code><button class="clipboard" data-clipboard-target="#xd7ffe3dd8984674"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
}</code><button class="clipboard" data-clipboard-target="#x8018b32b040b4999"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div></div>

<div class="admonitionblock note">
<table>
<tbody><tr>
<td class="icon">
<i class="fa icon-note" title="Note"></i>
</td>
<td class="content">
<div class="paragraph">
<p>Please note that the order of annotation processors is important. For example, if you’re using <code>lombok</code> and <code>avaje-inject</code>, the correct order should be: <code>lombok</code><code>avaje-inject</code><code>jooby-apt</code></p>
</div>
</td>
</tr>
</tbody></table>
</div>
<div class="paragraph">
<p>3) Install Avaje Inject:</p>
</div>
<div class="listingblock primary">
<div class="title">Installing Avaje Inject</div>

<div class="switch"><div class="switch--item option-1 selected">Java</div><div class="switch--item option-2">Kotlin</div></div><div class="content option-1">
<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java" id="x2c65f33f9c3c40e0">public class App extends Jooby {
<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java" id="xacd5d6c950704cf4">public class App extends Jooby {

{
install(AvajeInjectModule.of()); <i class="conum" data-value="1"></i><b>(1)</b>
Expand All @@ -653,9 +669,9 @@ <h3 id="avaje-inject"><a class="anchor" href="#avaje-inject"></a><a class="link"
public static void main(String[] args) {
runApp(args, App::new);
}
}</code><button class="clipboard" data-clipboard-target="#x2c65f33f9c3c40e0"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
}</code><button class="clipboard" data-clipboard-target="#xacd5d6c950704cf4"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div><div class="content hidden option-2">
<pre class="highlightjs highlight"><code class="language-kotlin hljs" data-lang="kotlin" id="x3ca7faa05d9c4c37">fun main(args: Array&lt;String&gt;) {
<pre class="highlightjs highlight"><code class="language-kotlin hljs" data-lang="kotlin" id="xdfab0b5fd3c140ae">fun main(args: Array&lt;String&gt;) {
runApp(args) {
install(AvajeInjectModule.of()) <i class="conum" data-value="1"></i><b>(1)</b>

Expand All @@ -664,7 +680,7 @@ <h3 id="avaje-inject"><a class="anchor" href="#avaje-inject"></a><a class="link"
service.doSomething()
}
}
}</code><button class="clipboard" data-clipboard-target="#x3ca7faa05d9c4c37"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
}</code><button class="clipboard" data-clipboard-target="#xdfab0b5fd3c140ae"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div></div>

<div class="colist arabic">
Expand All @@ -687,27 +703,27 @@ <h4 id="avaje-inject-property-injection"><a class="anchor" href="#avaje-inject-p
<div class="listingblock">
<div class="title">application.conf</div>
<div class="content">
<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash" id="x455ebe7c4a454ec4">currency = USD</code><button class="clipboard" data-clipboard-target="#x455ebe7c4a454ec4"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
<pre class="highlightjs highlight"><code class="language-bash hljs" data-lang="bash" id="xa5c81e2620ee4571">currency = USD</code><button class="clipboard" data-clipboard-target="#xa5c81e2620ee4571"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div>
</div>
<div class="listingblock primary">


<div class="switch"><div class="switch--item option-1 selected">Java</div><div class="switch--item option-2">Kotlin</div></div><div class="content option-1">
<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java" id="xf186f27f35f74d68">@Singleton
<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java" id="xc4e3dbeb83cf4743">@Singleton
public class BillingService {

@Inject
public BillingService(@External @Named("currency") String currency) {
...
}

}</code><button class="clipboard" data-clipboard-target="#xf186f27f35f74d68"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
}</code><button class="clipboard" data-clipboard-target="#xc4e3dbeb83cf4743"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div><div class="content hidden option-2">
<pre class="highlightjs highlight"><code class="language-kotlin hljs" data-lang="kotlin" id="x8a1ebdd34a044438">@Singleton
<pre class="highlightjs highlight"><code class="language-kotlin hljs" data-lang="kotlin" id="x91946bf44d0240b0">@Singleton
class BillingService @Inject constructor(@External @Named("currency") currency: String) {
...
}</code><button class="clipboard" data-clipboard-target="#x8a1ebdd34a044438"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
}</code><button class="clipboard" data-clipboard-target="#x91946bf44d0240b0"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div></div>

</div>
Expand All @@ -720,7 +736,7 @@ <h4 id="avaje-inject-mvc-routes"><a class="anchor" href="#avaje-inject-mvc-route
<div class="title">MVC and Avaje Inject</div>

<div class="switch"><div class="switch--item option-1 selected">Java</div><div class="switch--item option-2">Kotlin</div></div><div class="content option-1">
<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java" id="x69078774897541b7">public class App extends Jooby {
<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java" id="xac608693e5824411">public class App extends Jooby {

{
install(AvajeInjectModule.of()); <i class="conum" data-value="1"></i><b>(1)</b>
Expand All @@ -731,15 +747,15 @@ <h4 id="avaje-inject-mvc-routes"><a class="anchor" href="#avaje-inject-mvc-route
public static void main(String[] args) {
runApp(args, App::new);
}
}</code><button class="clipboard" data-clipboard-target="#x69078774897541b7"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
}</code><button class="clipboard" data-clipboard-target="#xac608693e5824411"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div><div class="content hidden option-2">
<pre class="highlightjs highlight"><code class="language-kotlin hljs" data-lang="kotlin" id="xaed435378c6f43d4">fun main(args: Array&lt;String&gt;) {
<pre class="highlightjs highlight"><code class="language-kotlin hljs" data-lang="kotlin" id="xde22199394c047ed">fun main(args: Array&lt;String&gt;) {
runApp(args) {
install(AvajeInjectModule.of()) <i class="conum" data-value="1"></i><b>(1)</b>

mvc(MyController::class) <i class="conum" data-value="2"></i><b>(2)</b>
}
}</code><button class="clipboard" data-clipboard-target="#xaed435378c6f43d4"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
}</code><button class="clipboard" data-clipboard-target="#xde22199394c047ed"><img src="/images/clippy.svg" class="clippy" width="13" alt="Copy to clipboard"></button></pre>
</div></div>

<div class="colist arabic">
Expand Down
Loading

0 comments on commit bec5af1

Please sign in to comment.