├── .gitignore ├── README ├── pom.xml └── src └── main └── resources └── webjars-requirejs.js /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | /.idea 3 | /*.iml 4 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | jQuery WebJar 2 | 3 | More info: http://webjars.org 4 | -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4.0.0 4 | 5 | 6 | org.sonatype.oss 7 | oss-parent 8 | 7 9 | 10 | 11 | jar 12 | org.webjars 13 | jquery 14 | 3.7.2-SNAPSHOT 15 | jquery 16 | WebJar for jQuery 17 | http://webjars.org 18 | 19 | 20 | 21 | MIT License 22 | https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt 23 | repo 24 | 25 | 26 | 27 | 28 | http://github.com/webjars/jquery 29 | scm:git:https://github.com/webjars/jquery.git 30 | scm:git:https://github.com/webjars/jquery.git 31 | HEAD 32 | 33 | 34 | 35 | 36 | jamesward 37 | James Ward 38 | james@jamesward.org 39 | 40 | 41 | 42 | 43 | UTF-8 44 | https://cdnjs.cloudflare.com/ajax/libs/jquery/${version.unrevise} 45 | ${project.build.outputDirectory}/META-INF/resources/webjars/${project.artifactId}/${project.version} 46 | 47 | { 48 | "paths": { 49 | "jquery": "jquery", 50 | "jquery-slim": "jquery.slim" 51 | }, 52 | "shim": { 53 | "jquery": { "exports": "$" }, 54 | "jquery-slim": { "exports": "$" } 55 | } 56 | } 57 | 58 | 59 | 60 | 61 | 62 | 63 | com.jamesward 64 | unsnapshot-maven-plugin 65 | 0.2 66 | 67 | 68 | initialize 69 | 70 | unsnapshot 71 | 72 | 73 | 74 | 75 | 76 | 77 | org.codehaus.mojo 78 | wagon-maven-plugin 79 | 1.0-beta-4 80 | 81 | 82 | download-js 83 | process-resources 84 | download-single 85 | 86 | ${downloadUrl} 87 | jquery.js 88 | ${destinationDir}/jquery.js 89 | 90 | 91 | 92 | download-min-js 93 | process-resources 94 | download-single 95 | 96 | ${downloadUrl} 97 | jquery.min.js 98 | ${destinationDir}/jquery.min.js 99 | 100 | 101 | 102 | download-source-map 103 | process-resources 104 | download-single 105 | 106 | ${downloadUrl} 107 | jquery.min.map 108 | ${destinationDir}/jquery.min.map 109 | 110 | 111 | 112 | download-slim-js 113 | process-resources 114 | download-single 115 | 116 | ${downloadUrl} 117 | jquery.slim.js 118 | ${destinationDir}/jquery.slim.js 119 | 120 | 121 | 122 | download-slim-min-js 123 | process-resources 124 | download-single 125 | 126 | ${downloadUrl} 127 | jquery.slim.min.js 128 | ${destinationDir}/jquery.slim.min.js 129 | 130 | 131 | 132 | download-slim-source-map 133 | process-resources 134 | download-single 135 | 136 | ${downloadUrl} 137 | jquery.slim.min.map 138 | ${destinationDir}/jquery.slim.min.map 139 | 140 | 141 | 142 | 143 | 144 | 145 | org.apache.maven.plugins 146 | maven-release-plugin 147 | 3.0.0 148 | 149 | 150 | 151 | org.apache.maven.plugins 152 | maven-jar-plugin 153 | 3.2.2 154 | 155 | 156 | 157 | org.sonatype.plugins 158 | nexus-staging-maven-plugin 159 | 1.6.13 160 | true 161 | 162 | sonatype-nexus-staging 163 | https://oss.sonatype.org/ 164 | true 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | org.apache.maven.wagon 173 | wagon-http-lightweight 174 | 2.4 175 | 176 | 177 | 178 | 179 | ${project.basedir}/src/main/resources 180 | ${destinationDir} 181 | 182 | 183 | 184 | 185 | 186 | -------------------------------------------------------------------------------- /src/main/resources/webjars-requirejs.js: -------------------------------------------------------------------------------- 1 | /*global requirejs */ 2 | 3 | // Ensure any request for this webjar brings in jQuery. 4 | requirejs.config({ 5 | paths: { "jquery": webjars.path("jquery", "jquery") }, 6 | shim: { "jquery": { "exports": "$" } } 7 | }); 8 | --------------------------------------------------------------------------------