You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
昔の gradle には dependency locking 機能がなかった。ビルドするタイミングによって、別の依存モジュールが利用されたりしていた。。 最近、gradle に dependency locking 機能がついたので試してみた。 carton.lock とか package-lock.json とか、そういうのと同じようなことができるようになる。 同じレポジトリからビルドしたら同じ jar が生成されるようになる。便利。 dependency locking を利用すると gradle.lockfile というファイルが生成される。 デフォルトだとフェーズ単位でファイルが生成されるから enableFeaturePreview('ONE_LOCKFILE_PER_PROJECT') を settings.gradle に書いて1ファイルにまとめるようにしたほうが良い。gr
はじめに 最近、社内でMavenの勉強会があり、Gradleも話題として挙がっていました。 Mavenとの比較ができたら面白そうだったのでGradleを使い始めています。 今回の内容は既存のMavenプロジェクトをGradleに移行するやり方なので、 既にたくさんの方がやっていて目新しさはないかと思いますが・・・ 今回の実施環境 Windows 7 Gradleインストール ダウンロード&インストール なにはともあれ、まずはGradleをインストールしましょう。 Gradle公式 上記URLからDownload&Docsを選び、Complete distributionもしくは、Binary only distributionをダウンロードして好きなところに解凍します。 解凍できたらbinにPATHを通します。 プロキシ設定 社内などプロキシ配下でGradleを実行する場合は、プロキシ設定
はじめに Gradleのビルドを高速化する方法について、下記エントリを参考に調べてみました。 10 Tips to Improve Your Gradle Build Time — Medium 記事の冒頭でも書かれている通り、上記のエントリはAndroidプロジェクト向けに書かれていますが、AndroidプロジェクトでなくてもGradleプロジェクトならば適用できる方法ばかりです。 (一つAndroid限定のものもありますが) 特にマルチプロジェクト構成の際に効果が高いものばかりなので、大規模なGradleプロジェクトを構築する際の参考になりそうです。 ただ、最後のまとめにも書きましたが、ビルド時間の大半を占めるのがテスト実行時間であることが多いため、劇的にビルドが早くなるという訳では無いかと思いました。 0. ドキュメント Gradleのコマンドラインオプションと実行時オプションを利用
How does Netflix build code before it’s deployed to the cloud? While pieces of this story have been told in the past, we decided it was time we shared more details. In this post, we describe the tools and techniques used to go from source code to a deployed service serving movies and TV shows to more than 75 million global Netflix members. The above diagram expands on a previous post announcing Sp
Repeatable builds Going back to a previous commit of your code and building it from source doesn’t guarantee exactly the same result. Your transitive dependency graph can change in subtle ways, even if you are careful to pin your dependencies. Nebula can help you lock your resolved dependency graph into source control quickly and easily. Immutable deployments If you’ve built an app and need to ins
Gradle is here to stay. Although existing before Android Studio, it became the official build tool for android development and was the turning point on making it popular. But, are we taking full advantage of this great build automation system? Project and build specific global variablesWith gradle, a BuildConfig class is automatically generated and we have the ability to generate additional fields
ちょっと前に gradle で maven central にあげようとしたら極めて困難な印象で挫折していたのだが、最近試したらすんなりといったのでご報告申し上げます。 単に gradle が難しいというよりは、maven central 等の toolchain 的な部分に関する知識がだいたいわかったので、すんなりわかったという点も多いんですが。 まず、gradle に maven central にアップロードする方法は、実は公式サイトにまとめられています。 http://central.sonatype.org/pages/gradle.html 基本的にはこの通りに設定すればいいのだが、このドキュメント、gnupg とかについてはすでに設定済みだ、というような前提に基づいているので注意が必要。 アカウントの取得等についてはモリスさんのエントリを読めばよろしい。 http://tag
Gradleでビルドした成果物をMaven Central Repositoryにリリースする方法を説明します。 成果物の公開にあたってはSonatype OSSRHで申請が必要です。こちらのイケメンな記事が大変参考になります。こちらの記事ではMavenを使っていますが、本稿ではGradleを使います。 PGP鍵を確認する 成果物の署名に使うPGP鍵を確認します。まだ作成していない場合は先ほどの記事やSonatypeの公式ドキュメントを参考にしてください。gpgコマンドはbrew installでインストールできます。 $ gpg --list-keys /Users/hidetake/.gnupg/pubring.gpg ---------------------------------- pub 4096R/1234ABCD 2012-12-14 uid ikemen <ikemen@
前 maven2gradle を使ってみた(メモ) - hd 4.0 で maven2gradle で生成した build.gradle を使って eclipse + wtp で開発できるようにしたのでメモ。 以前の状態だと war 作ったり jettyRun で起動したりはできたけど eclipse + wtp で動かない状態だった。やはり個人的には eclipse で開発できないと辛い。 Gradle STS Support のインストール eclipse で gradle 使うなら多分これが今のところ一番よさそう。まぁコマンドラインでもいい・・というかコマンドラインで十分な気もしないでもないが。 どっかで STS 入れなくても単体で動くとか見たんだけど、 STS がないと認識されてないっぽかったので STS を入れる。重いらしいがまぁ Spring も使うし・・。特に何も考えず Ma
またまたGradleネタです。Gradleなどのツールでビルドしつつも普段の開発やユニットテストはIDEで行うというのはよくある話。GradleではIDE開発をサポートするプラグインも用意されています。 Eclipse Plugin IDEA Plugin 今回はこのうちEclipse Pluginに関していくつかTipsを紹介。 Eclipse Pluginを使うと何ができる? プロジェクトからEclipseの各種設定ファイルを自動生成することができる。Mavenで言うところのMaven Eclipse Pluginと同じような物。 Eclipseのプロジェクト情報である.projectファイルや、クラスパスを定義した.classpathを生成することができる。 この時、Gradleで定義した依存関係も解決してくれるので、MavenみたいにJARを自動でダウンロードしてEclipseのク
Even when you run a Gradle build that is up-to-date, it takes several seconds for the build to complete. Valuable time is lost at startup since for every build, the JVM and all the Groovy classes must be loaded first. To avoid this performance hit, Gradle offers an experimental daemon. The Gradle Daemon is a Java process that constantly runs in the background and executes builds on Gradle’s behalf
In Gradle, you can run a single test (or a pattern of tests) by specifying the system property test.single, where test is the name of the Gradle Test task in your build script. For example, to run the UserServiceProxyTest by the Gradle Test task named test, you can run the following command: $ gradle test -Dtest.single=UserServiceProxyTest Not very convenient having to work with system properties,
Copies of this document may be made for your own use and for distribution to others, provided that you do not charge any fee for such copies and further provided that each copy contains this Copyright Notice, whether distributed in print or electronically. List of Examples5.1. The first build script5.2. Execution of a build script5.3. A task definition shortcut5.4. Using Groovy in Gradle's tasks5.
1 about this cookbook 1.1 How can you help ? 2 general issues 2.1 problems after upgrade to newer version of Gradle 3 plugins 4 web development 4.1 creation of exploded war 4.2 running selenium tests 5 missing features 5.1 running things from Gradle 5.2 creating source and resource directories 5.3 creating GroovyEclipse project files 5.4 applying plugins via init script 5.5 create project, archety
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く